mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #21113 -- Made LogEntry.change_message language independent
Thanks Tim Graham for the review.
This commit is contained in:
parent
56aaae58a7
commit
cf7894be88
11 changed files with 216 additions and 35 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue