summaryrefslogtreecommitdiff
path: root/tests/admin_utils/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_utils/models.py')
-rw-r--r--tests/admin_utils/models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/admin_utils/models.py b/tests/admin_utils/models.py
index a4fe85291c..87060cbff8 100644
--- a/tests/admin_utils/models.py
+++ b/tests/admin_utils/models.py
@@ -1,6 +1,7 @@
from django.db import models
from django.utils import six
from django.utils.encoding import python_2_unicode_compatible
+from django.utils.translation import ugettext_lazy as _
@python_2_unicode_compatible
@@ -17,8 +18,8 @@ class Article(models.Model):
"""
site = models.ForeignKey(Site, models.CASCADE, related_name="admin_articles")
title = models.CharField(max_length=100)
- title2 = models.CharField(max_length=100, verbose_name="another name")
- created = models.DateTimeField()
+ hist = models.CharField(max_length=100, verbose_name=_("History"))
+ created = models.DateTimeField(null=True)
def test_from_model(self):
return "nothing"