Commit 423e702818912ee3e5f8c2dec5e8183a51118aed
1 parent
d022be7e
Exists in
master
and in
3 other branches
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 | 5 | |
| 6 | 6 | class Category(models.Model): |
| 7 | 7 | """Represents a Course """ |
| 8 | - | |
| 8 | + | |
| 9 | 9 | name = models.CharField(_("Name"), max_length = 100, blank = False, null = False, unique = True) |
| 10 | 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 | 12 | visible = models.BooleanField(_("visible"), default = True) |
| 13 | 13 | coordinators = models.ManyToManyField(User, related_name = "coordinators", blank = True) |
| 14 | 14 | create_date = models.DateTimeField(_('Creation Date'), auto_now_add = True) |
| ... | ... | @@ -20,4 +20,4 @@ class Category(models.Model): |
| 20 | 20 | verbose_name_plural = _('Categories') |
| 21 | 21 | |
| 22 | 22 | def __str__(self): |
| 23 | - return self.name | |
| 24 | 23 | \ No newline at end of file |
| 24 | + return self.name | ... | ... |