From 0e9ec36b5e89e963fa7af2f5a2e8674f48d86067 Mon Sep 17 00:00:00 2001 From: Gustavo Date: Thu, 20 Apr 2017 00:09:36 -0300 Subject: [PATCH] Modified news models.py to fix news content bug --- news/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news/models.py b/news/models.py index 69fbd2d..07371f4 100644 --- a/news/models.py +++ b/news/models.py @@ -18,7 +18,7 @@ class News(models.Model): title = models.CharField( _("Title"), unique = True,max_length= 200) slug = AutoSlugField(_("Slug"),populate_from='title',unique=True) image = models.ImageField(verbose_name = _('News Image'), upload_to = 'news/', validators = [validate_img_extension],blank= True) - content = models.TextField(_('News Content')) + content = models.TextField(_('News Content'), blank = True) create_date = models.DateTimeField(_('Create Date'), auto_now_add = True) creator = models.ForeignKey(User, verbose_name = _('Creator'), related_name = "news_creator_user", null = True) class Meta: -- libgit2 0.21.2