summaryrefslogtreecommitdiff
path: root/tests/admin_widgets
diff options
context:
space:
mode:
authorCollin Anderson <cmawebsite@gmail.com>2015-02-11 11:40:03 -0500
committerTim Graham <timograham@gmail.com>2015-02-11 13:01:25 -0500
commit343c0875338128dad162d4806fe908fb31404d14 (patch)
tree015974a91ea238292900af0bcec810c09b1c2304 /tests/admin_widgets
parente06971340d6a8c1eb41588d8c5fb3cacac798ab3 (diff)
[1.8.x] Refs #14497 -- Handled empty readonly admin FileFields
Backport of 07cfe1bd822f4108b5029aef1615a17000d0b0dc from master
Diffstat (limited to 'tests/admin_widgets')
-rw-r--r--tests/admin_widgets/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
index 8d74f0b53c..6838a12b4d 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -397,6 +397,12 @@ class AdminFileWidgetTests(DjangoTestCase):
'<input type="file" name="cover_art" id="id_cover_art" />',
html=True,
)
+ response = self.client.get(reverse('admin:admin_widgets_album_add'))
+ self.assertContains(
+ response,
+ '<p></p>',
+ html=True,
+ )
@override_settings(ROOT_URLCONF='admin_widgets.urls')