Skip to main content
✏️ Code CompletionDJ Django Medium+20 XP

Model String Representation

Complete to give the model a human-readable name.

✏️ Fill in the blank
class Product(models.Model):
    name = models.CharField(max_length=100)
    def _____(self): return self.name

✏️ Type the missing code: