diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-12-24 22:43:28 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-12-29 21:58:12 +0100 |
| commit | 02f3daadd6c4f4ae2ab4f37c6e4c523f438c205e (patch) | |
| tree | 58cb05c27c3ab2e6565e3e3c20e803774565bada /django | |
| parent | 59ddb79e9090f8609f9125379db08adc95d507c0 (diff) | |
Removed interpolation of post_url_continue in the admin.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admin/options.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index fa6d288f58..b0c2c4dcf9 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -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) |
