Commit 423e702818912ee3e5f8c2dec5e8183a51118aed

Authored by Gustavo
1 parent d022be7e

Description field is no longer required, as it should be

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
categories/models.py
@@ -5,10 +5,10 @@ from users.models import User @@ -5,10 +5,10 @@ from users.models import User
5 5
6 class Category(models.Model): 6 class Category(models.Model):
7 """Represents a Course """ 7 """Represents a Course """
8 - 8 +
9 name = models.CharField(_("Name"), max_length = 100, blank = False, null = False, unique = True) 9 name = models.CharField(_("Name"), max_length = 100, blank = False, null = False, unique = True)
10 slug = AutoSlugField(_("Slug"), populate_from = 'name', unique = True) 10 slug = AutoSlugField(_("Slug"), populate_from = 'name', unique = True)
11 - description = models.CharField(_("description"), max_length = 300) 11 + description = models.CharField(_("description"), max_length = 300,blank = True, null = True)
12 visible = models.BooleanField(_("visible"), default = True) 12 visible = models.BooleanField(_("visible"), default = True)
13 coordinators = models.ManyToManyField(User, related_name = "coordinators", blank = True) 13 coordinators = models.ManyToManyField(User, related_name = "coordinators", blank = True)
14 create_date = models.DateTimeField(_('Creation Date'), auto_now_add = True) 14 create_date = models.DateTimeField(_('Creation Date'), auto_now_add = True)
@@ -20,4 +20,4 @@ class Category(models.Model): @@ -20,4 +20,4 @@ class Category(models.Model):
20 verbose_name_plural = _('Categories') 20 verbose_name_plural = _('Categories')
21 21
22 def __str__(self): 22 def __str__(self):
23 - return self.name  
24 \ No newline at end of file 23 \ No newline at end of file
  24 + return self.name