Opened 17 years ago

Last modified 17 years ago

#4497 closed

Bug if form_url is empty (i.e. creating new user), and TEMPLATE_STRING_IF_INVALID is set — at Initial Version

Reported by: buriy <burchik@…> Owned by: Jacob
Component: contrib.admin Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Index: D:/program/Python24/Lib/site-packages/django-svn/django/contrib/admin/templates/admin/change_form.html
===================================================================
--- D:/program/Python24/Lib/site-packages/django-svn/django/contrib/admin/templates/admin/change_form.html (revision 5418)
+++ D:/program/Python24/Lib/site-packages/django-svn/django/contrib/admin/templates/admin/change_form.html (working copy)
@@ -23,7 +23,7 @@

</ul>

{% endif %}{% endif %}
{% endblock %}

-<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
+<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}{% if form_url %}action="{{ form_url }}" {% endif %}method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}

<div>
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
{% if opts.admin.save_on_top %}{% submit_row %}{% endif %}

Change History (1)

by buriy <burchik@…>, 17 years ago

Attachment: 4497.patch added

Patch

Note: See TracTickets for help on using tickets.
Back to Top