mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #8190 -- Added support for a field's help text to the tabular admin inline. Thanks, Julien Phalip and Idan Gazit.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16622 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -103,6 +103,16 @@ class TestInline(TestCase):
|
||||
# column cells
|
||||
self.assertContains(response, '<p>Callable in QuestionInline</p>')
|
||||
|
||||
def test_help_text(self):
|
||||
"""
|
||||
Ensure that the inlines' model field help texts are displayed when
|
||||
using both the stacked and tabular layouts.
|
||||
Ref #8190.
|
||||
"""
|
||||
response = self.client.get('/test_admin/admin/admin_inlines/holder4/add/')
|
||||
self.assertContains(response, '<p class="help">Awesome stacked help text is awesome.</p>', 4)
|
||||
self.assertContains(response, '<img src="/static/admin/img/icon-unknown.gif" alt="(Awesome tabular help text is awesome.)" title="Awesome tabular help text is awesome." />', 1)
|
||||
|
||||
class TestInlineMedia(TestCase):
|
||||
fixtures = ['admin-views-users.xml']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user