diff --git a/suit/templates/admin/auth/user/change_password.html b/suit/templates/admin/auth/user/change_password.html index 54417f1f..45270636 100644 --- a/suit/templates/admin/auth/user/change_password.html +++ b/suit/templates/admin/auth/user/change_password.html @@ -36,7 +36,7 @@ {% block content %}
-
+ {% csrf_token %}{% block form_top %}{% endblock %}
{% if is_popup %} diff --git a/suit/templates/admin/change_form.html b/suit/templates/admin/change_form.html index 5efc35d2..08453a6b 100644 --- a/suit/templates/admin/change_form.html +++ b/suit/templates/admin/change_form.html @@ -18,7 +18,7 @@ {% endif %} @@ -83,7 +83,7 @@
+ id="{% firstof opts.model_name opts.module_name %}_form" class="form-horizontal">
@@ -182,7 +182,7 @@

{% trans 'tools'|capfirst %}

showRelatedObjectLookupPopup(this); }); {% if adminform and add %} - $('form#{{ opts.model_name }}_form :input[type!=button][type!=submit]:visible:enabled:first').focus() + $('form#{% firstof opts.model_name opts.module_name %}_form :input[type!=button][type!=submit]:visible:enabled:first').focus() {% endif %} }); })(django.jQuery); diff --git a/suit/templates/admin/import_export/import.html b/suit/templates/admin/import_export/import.html index 0026edf4..344d5c23 100644 --- a/suit/templates/admin/import_export/import.html +++ b/suit/templates/admin/import_export/import.html @@ -9,7 +9,7 @@ {% block content %} {% if not confirm_form %} - + {% csrf_token %}