diff options
| author | Claude Paroz <claude@2xlibre.net> | 2015-12-26 19:51:22 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-01-08 20:34:59 +0100 |
| commit | cf7894be88f6c27680ef80796b883f6e3b709b8b (patch) | |
| tree | 6620fd9dea735a2b91ccde0a7168d3098823e0fb /tests/admin_utils/models.py | |
| parent | 56aaae58a746eb39d5e92ba60f59f4c750a8e1a8 (diff) | |
Fixed #21113 -- Made LogEntry.change_message language independent
Thanks Tim Graham for the review.
Diffstat (limited to 'tests/admin_utils/models.py')
| -rw-r--r-- | tests/admin_utils/models.py | 5 |
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" |
