From 52850bb9de774cfba76d470f9a93f84f2ccb0b6b Mon Sep 17 00:00:00 2001 From: Gustavo Date: Sun, 9 Apr 2017 13:21:45 -0300 Subject: [PATCH] Modified models --- news/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news/models.py b/news/models.py index 41559fe..b9d2d21 100644 --- a/news/models.py +++ b/news/models.py @@ -15,7 +15,7 @@ def validate_img_extension(value): raise ValidationError(_('File not supported.')) class News(models.Model): - title = models.CharField( _("Name"), unique = True,max_length= 200) + 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]) content = models.TextField(_('News Content')) -- libgit2 0.21.2