mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[1.8.x] Refs #14497 -- Handled empty readonly admin FileFields
Backport of 07cfe1bd82 from master
This commit is contained in:
committed by
Tim Graham
parent
e06971340d
commit
343c087533
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user