mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #21113 -- Made LogEntry.change_message language independent
Thanks Tim Graham for the review.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user