summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_views
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-04-05 15:37:43 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-04-05 15:37:43 +0000
commit90d112785b5caf30507ffc91b74b8f5a7725e4f6 (patch)
treeafaa2ec7f9f717766a11c271a86ef92b918f5ddf /tests/regressiontests/admin_views
parent653b27dcf2d65beede220566f1b5fab4fc5d6673 (diff)
Fixed #13038 -- Ensured that readonly fields in the admin have their name added as a CSS class. Thanks to andybak for the report, and javimansilla, fisadev and fgallina for their work on the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_views')
-rw-r--r--tests/regressiontests/admin_views/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
index 00c5db4dfb..9b21cbac33 100644
--- a/tests/regressiontests/admin_views/tests.py
+++ b/tests/regressiontests/admin_views/tests.py
@@ -1967,6 +1967,11 @@ class ReadonlyTest(TestCase):
formats.localize(datetime.date.today() - datetime.timedelta(days=7))
)
+ self.assertContains(response, '<div class="form-row coolness">')
+ self.assertContains(response, '<div class="form-row awesomeness_level">')
+ self.assertContains(response, '<div class="form-row posted">')
+ self.assertContains(response, '<div class="form-row ">')
+
p = Post.objects.create(title="I worked on readonly_fields", content="Its good stuff")
response = self.client.get('/test_admin/admin/admin_views/post/%d/' % p.pk)
self.assertContains(response, "%d amount of cool" % p.pk)