mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-05-28 00:44:03 +00:00
Merge pull request #16 from dfalk/develop
Use ugettext_lazy instead of gettext_lazy for verbose name.
This commit is contained in:
commit
e3c53f6b17
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ from datetime import datetime
|
|||
from django.db import models
|
||||
from django.db.models import signals
|
||||
from django.template import TemplateDoesNotExist
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from django.contrib.sites.models import Site
|
||||
from django.contrib.sites.managers import CurrentSiteManager
|
||||
|
|
@ -22,7 +22,7 @@ class Template(models.Model):
|
|||
name = models.CharField(_('name'), max_length=100,
|
||||
help_text=_("Example: 'flatpages/default.html'"))
|
||||
content = models.TextField(_('content'), blank=True)
|
||||
sites = models.ManyToManyField(Site, verbose_name=_('sites'),
|
||||
sites = models.ManyToManyField(Site, verbose_name=_(u'sites'),
|
||||
blank=True, null=True)
|
||||
creation_date = models.DateTimeField(_('creation date'),
|
||||
default=datetime.now)
|
||||
|
|
|
|||
Loading…
Reference in a new issue