From 373a983b33fff96f1844b026002bc25b9192e073 Mon Sep 17 00:00:00 2001 From: Gustavo Bernardo Date: Wed, 16 Nov 2016 13:45:47 -0300 Subject: [PATCH] Included verbose name to translate properly [Issue:#398] --- links/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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