1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Refs #25165 -- Fixed JSON serialization for delete popup in the admin.

This commit is contained in:
Tim Graham
2016-01-08 19:39:05 -05:00
parent 8715205c5c
commit 3541ca1504
3 changed files with 19 additions and 2 deletions

View File

@@ -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,