From 423e702818912ee3e5f8c2dec5e8183a51118aed Mon Sep 17 00:00:00 2001 From: Gustavo Date: Mon, 20 Mar 2017 11:34:40 -0300 Subject: [PATCH] Description field is no longer required, as it should be --- categories/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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