diff --git a/links/models.py b/links/models.py index a8c9ec9..cd3e243 100644 --- a/links/models.py +++ b/links/models.py @@ -1,10 +1,12 @@ from django.db import models from courses.models import Material from autoslug.fields import AutoSlugField +from django.utils.translation import ugettext_lazy as _ + # Create your models here. class Link(Material): - link_url = models.URLField() - link_description = models.CharField(max_length=200) + link_url = models.URLField(verbose_name = _("Link_URL")) + link_description = models.CharField(_('Description'),max_length=200) image = models.ImageField(upload_to = 'links/',blank = True) class Meta: verbose_name = 'Link' -- libgit2 0.21.2