Commit 373a983b33fff96f1844b026002bc25b9192e073

Authored by Gustavo Bernardo
1 parent 5c9170fd

Included verbose name to translate properly [Issue:#398]

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
links/models.py
1 1 from django.db import models
2 2 from courses.models import Material
3 3 from autoslug.fields import AutoSlugField
  4 +from django.utils.translation import ugettext_lazy as _
  5 +
4 6 # Create your models here.
5 7 class Link(Material):
6   - link_url = models.URLField()
7   - link_description = models.CharField(max_length=200)
  8 + link_url = models.URLField(verbose_name = _("Link_URL"))
  9 + link_description = models.CharField(_('Description'),max_length=200)
8 10 image = models.ImageField(upload_to = 'links/',blank = True)
9 11 class Meta:
10 12 verbose_name = 'Link'
... ...