summaryrefslogtreecommitdiff
path: root/tests/admin_views/forms.py
diff options
context:
space:
mode:
authordavid <dakrauth@gmail.com>2015-03-07 11:57:52 +0100
committerErik Romijn <eromijn@solidlinks.nl>2015-03-07 12:59:58 +0100
commit88c605e3e34cebd5485d286a17ac84c7b8b0faf1 (patch)
tree8ccad05bfff014f851ffb504254c01842610757d /tests/admin_views/forms.py
parentec808e807ad711b993f199f6b4165ac6d0e1125b (diff)
Fixed #23993 -- Added form.media to the admin login template.
Diffstat (limited to 'tests/admin_views/forms.py')
-rw-r--r--tests/admin_views/forms.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/admin_views/forms.py b/tests/admin_views/forms.py
index e8493df95b..06c99f4bc3 100644
--- a/tests/admin_views/forms.py
+++ b/tests/admin_views/forms.py
@@ -4,6 +4,9 @@ from django.contrib.admin.forms import AdminAuthenticationForm
class CustomAdminAuthenticationForm(AdminAuthenticationForm):
+ class Media:
+ css = {'all': ('path/to/media.css',)}
+
def clean_username(self):
username = self.cleaned_data.get('username')
if username == 'customform':