mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Added test for django.contrib.admin.utils.help_text_for_field().
This commit is contained in:
parent
fbe82f8255
commit
1e96de4f97
2 changed files with 17 additions and 2 deletions
|
@ -15,7 +15,11 @@ class Article(models.Model):
|
|||
"""
|
||||
site = models.ForeignKey(Site, models.CASCADE, related_name="admin_articles")
|
||||
title = models.CharField(max_length=100)
|
||||
hist = models.CharField(max_length=100, verbose_name=_("History"))
|
||||
hist = models.CharField(
|
||||
max_length=100,
|
||||
verbose_name=_('History'),
|
||||
help_text=_('History help text'),
|
||||
)
|
||||
created = models.DateTimeField(null=True)
|
||||
|
||||
def __str__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue