diff options
| author | Tim Graham <timograham@gmail.com> | 2016-01-08 19:39:05 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-01-09 13:35:58 -0500 |
| commit | 3541ca1504d75b6b4fc8b8db0e7d62e990433f12 (patch) | |
| tree | b8d6368a76c6b01a361b025b3644c8dc3947689e /django | |
| parent | 8715205c5c0e49b21b5bbea35d904713ee188a71 (diff) | |
Refs #25165 -- Fixed JSON serialization for delete popup in the admin.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admin/options.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 3361679591..db1e877a74 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -1319,7 +1319,7 @@ class ModelAdmin(BaseModelAdmin): if IS_POPUP_VAR in request.POST: popup_response_data = json.dumps({ 'action': 'delete', - 'value': obj_id, + 'value': str(obj_id), }) return SimpleTemplateResponse('admin/popup_response.html', { 'popup_response_data': popup_response_data, |
