diff --git a/categories/models.py b/categories/models.py index 69adf21..d2142ff 100644 --- a/categories/models.py +++ b/categories/models.py @@ -5,10 +5,10 @@ from users.models import User class Category(models.Model): """Represents a Course """ - + name = models.CharField(_("Name"), max_length = 100, blank = False, null = False, unique = True) slug = AutoSlugField(_("Slug"), populate_from = 'name', unique = True) - description = models.CharField(_("description"), max_length = 300) + description = models.CharField(_("description"), max_length = 300,blank = True, null = True) visible = models.BooleanField(_("visible"), default = True) coordinators = models.ManyToManyField(User, related_name = "coordinators", blank = True) create_date = models.DateTimeField(_('Creation Date'), auto_now_add = True) @@ -20,4 +20,4 @@ class Category(models.Model): verbose_name_plural = _('Categories') def __str__(self): - return self.name \ No newline at end of file + return self.name -- libgit2 0.21.2