summaryrefslogtreecommitdiff
path: root/tests/admin_utils/models.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-06-25 11:23:26 +0200
committerGitHub <noreply@github.com>2020-06-25 11:23:26 +0200
commit1e96de4f974acbdaa25ad4ba1894ea060213174e (patch)
treeff75c89880aee214977aa65d36de8c9e57397af2 /tests/admin_utils/models.py
parentfbe82f82555bc25dccb476c749ca062f0b522be3 (diff)
Added test for django.contrib.admin.utils.help_text_for_field().
Diffstat (limited to 'tests/admin_utils/models.py')
-rw-r--r--tests/admin_utils/models.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/admin_utils/models.py b/tests/admin_utils/models.py
index 7b9c08a2f7..fda1380b23 100644
--- a/tests/admin_utils/models.py
+++ b/tests/admin_utils/models.py
@@ -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):