diff options
| author | Stanislav Karpov <stkrp@yandex.ru> | 2016-07-20 15:38:07 +0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-11 19:35:31 -0400 |
| commit | b387189d86aa6f0b8dd5e9ff2facb725e6beb7a9 (patch) | |
| tree | 3961a86ee5d4d06aa3c5f186ec7fb571427f380d /tests/admin_views/forms.py | |
| parent | b785927b442d1e4b59f2afa40729a4ca1a7ed3ab (diff) | |
Fixed #26919 -- Added the action form's media in the changelist view.
Diffstat (limited to 'tests/admin_views/forms.py')
| -rw-r--r-- | tests/admin_views/forms.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/admin_views/forms.py b/tests/admin_views/forms.py index 06c99f4bc3..cceb543c41 100644 --- a/tests/admin_views/forms.py +++ b/tests/admin_views/forms.py @@ -1,5 +1,6 @@ from django import forms from django.contrib.admin.forms import AdminAuthenticationForm +from django.contrib.admin.helpers import ActionForm class CustomAdminAuthenticationForm(AdminAuthenticationForm): @@ -12,3 +13,8 @@ class CustomAdminAuthenticationForm(AdminAuthenticationForm): if username == 'customform': raise forms.ValidationError('custom form error') return username + + +class MediaActionForm(ActionForm): + class Media: + js = ['path/to/media.js'] |
