mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #14497 -- Handled empty readonly admin FileFields
This commit is contained in:
committed by
Tim Graham
parent
8ec306a3a9
commit
07cfe1bd82
@@ -396,6 +396,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