1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Removed interpolation of post_url_continue in the admin.

This commit is contained in:
Aymeric Augustin
2012-12-24 22:43:28 +01:00
parent 59ddb79e90
commit 02f3daadd6
3 changed files with 1 additions and 41 deletions

View File

@@ -807,16 +807,6 @@ class ModelAdmin(BaseModelAdmin):
(opts.app_label, opts.module_name),
args=(pk_value,),
current_app=self.admin_site.name)
else:
try:
post_url_continue = post_url_continue % pk_value
warnings.warn(
"The use of string formats for post_url_continue "
"in ModelAdmin.response_add() is deprecated. Provide "
"a pre-formatted url instead.",
DeprecationWarning, stacklevel=2)
except TypeError:
pass
if "_popup" in request.POST:
post_url_continue += "?_popup=1"
return HttpResponseRedirect(post_url_continue)