diff --git a/xadmin/plugins/auth.py b/xadmin/plugins/auth.py index e7b0130be..1b4250543 100644 --- a/xadmin/plugins/auth.py +++ b/xadmin/plugins/auth.py @@ -192,6 +192,7 @@ def get_context(self): context = super(ChangePasswordView, self).get_context() helper = FormHelper() helper.form_tag = False + helper.include_media = False self.form.helper = helper context.update({ 'title': _('Change password: %s') % escape(unicode(self.obj)), diff --git a/xadmin/plugins/batch.py b/xadmin/plugins/batch.py index 79ecba9af..769ede1b0 100644 --- a/xadmin/plugins/batch.py +++ b/xadmin/plugins/batch.py @@ -122,6 +122,7 @@ def do_action(self, queryset): helper = FormHelper() helper.form_tag = False + helper.include_media = False helper.add_layout(Layout(Container(Col('full', Fieldset("", *self.form_obj.fields.keys(), css_class="unsort no_title"), horizontal=True, span=12) ))) diff --git a/xadmin/plugins/editable.py b/xadmin/plugins/editable.py index b2ddd7c92..00c4c8ae0 100644 --- a/xadmin/plugins/editable.py +++ b/xadmin/plugins/editable.py @@ -118,6 +118,7 @@ def get(self, request, object_id): helper = FormHelper() helper.form_tag = False + helper.include_media = False form.helper = helper s = '{% load i18n crispy_forms_tags %}