Commit 52850bb9de774cfba76d470f9a93f84f2ccb0b6b
1 parent
51762058
Exists in
master
and in
2 other branches
Modified models
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
news/models.py
... | ... | @@ -15,7 +15,7 @@ def validate_img_extension(value): |
15 | 15 | raise ValidationError(_('File not supported.')) |
16 | 16 | |
17 | 17 | class News(models.Model): |
18 | - title = models.CharField( _("Name"), unique = True,max_length= 200) | |
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]) |
21 | 21 | content = models.TextField(_('News Content')) | ... | ... |