Created
October 29, 2022 16:49
-
-
Save KabakiAntony/ff36ae0503a49f33b164af2c1403d28b to your computer and use it in GitHub Desktop.
this should not be a new file but rather an update for models just want to highlight the category model update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Category(models.Model): | |
name = models.CharField(max_length=100, unique=True) | |
description = models.TextField(max_length=255, blank=True) | |
def __str__(self): | |
return self.name | |
class Meta: | |
verbose_name_plural = "Categories" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment