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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user