Python-Django-FastAPI-advanced-topics icon indicating copy to clipboard operation
Python-Django-FastAPI-advanced-topics copied to clipboard

Missing Information On property decorators section

Open berkaykrc opened this issue 2 years ago • 1 comments

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:

  1. Navigate to the Property Decorators section.
  2. Observe the code template.

Expected Result: There should be a code snippet.

Actual Result: Just a text "span"

berkaykrc avatar Dec 14 '23 19:12 berkaykrc

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"

berkaykrc avatar Dec 14 '23 19:12 berkaykrc

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.

hamedasgari20 avatar Nov 21 '24 07:11 hamedasgari20