Commit 0e9ec36b5e89e963fa7af2f5a2e8674f48d86067
1 parent
2483903c
Exists in
master
and in
2 other branches
Modified news models.py to fix news content bug
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
news/models.py
... | ... | @@ -18,7 +18,7 @@ class News(models.Model): |
18 | 18 | title = models.CharField( _("Title"), unique = True,max_length= 200) |
19 | 19 | slug = AutoSlugField(_("Slug"),populate_from='title',unique=True) |
20 | 20 | image = models.ImageField(verbose_name = _('News Image'), upload_to = 'news/', validators = [validate_img_extension],blank= True) |
21 | - content = models.TextField(_('News Content')) | |
21 | + content = models.TextField(_('News Content'), blank = True) | |
22 | 22 | create_date = models.DateTimeField(_('Create Date'), auto_now_add = True) |
23 | 23 | creator = models.ForeignKey(User, verbose_name = _('Creator'), related_name = "news_creator_user", null = True) |
24 | 24 | class Meta: | ... | ... |