mirror of
https://github.com/django/django.git
synced 2025-10-10 02:22:22 +00:00
[1.7.x] Fixed #21685 -- Displayed app verbose name in admindocs model index
Backport of 4cf82e5bcf
from master.
This commit is contained in:
parent
e9d0ef19bc
commit
9d0ebceb32
2 changed files with 9 additions and 5 deletions
|
@ -81,7 +81,11 @@ class AdminDocViewTests(TestCase):
|
|||
|
||||
def test_model_index(self):
|
||||
response = self.client.get(reverse('django-admindocs-models-index'))
|
||||
self.assertContains(response, '<h2 id="app-auth">Auth</h2>', html=True)
|
||||
self.assertContains(
|
||||
response,
|
||||
'<h2 id="app-auth">Authentication and Authorization (django.contrib.auth)</h2>',
|
||||
html=True
|
||||
)
|
||||
|
||||
def test_template_detail(self):
|
||||
response = self.client.get(reverse('django-admindocs-templates',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue