Python-Django-FastAPI-advanced-topics
Python-Django-FastAPI-advanced-topics copied to clipboard
Missing Information On property decorators section
Title: Missing Information on Property Decorators section
Description: I encountered in the property decorators section a blank code template with just span text.
Steps to Reproduce:
- Navigate to the Property Decorators section.
- Observe the code template.
Expected Result: There should be a code snippet.
Actual Result: Just a text "span"
from django.db import models
class Book(models.Model):
title = models.CharField(max_length=100)
author = models.CharField(max_length=50)
price = models.DecimalField(max_digits=5, decimal_places=2)
@property
def price_in_euros(self):
return f"{self.price} EUR"
Thanks for your suggestion
Please make the changes if possible and submit a merge request to include your name as a contributor in this repository.