You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Django>=1.4 has added a new "form_url" arg to ModelAdmin, which means that the ErrorAdmin class in this project which overrides ModelAdmin needs a slight modification to still work. The "extra_context" variable passed to super() needs to be specified as a keyword argument, otherwise it erroneously becomes the "form_url" argument.
To clarify, the call to super() in ErrorAdmin.change_view() needs to be changed from this:
return super(ErrorAdmin, self).change_view(request, object_id, extra_context)
to this:
return super(ErrorAdmin, self).change_view(request, object_id, extra_context=extra_context)
The text was updated successfully, but these errors were encountered:
Django>=1.4 has added a new "form_url" arg to ModelAdmin, which means that the ErrorAdmin class in this project which overrides ModelAdmin needs a slight modification to still work. The "extra_context" variable passed to super() needs to be specified as a keyword argument, otherwise it erroneously becomes the "form_url" argument.
To clarify, the call to super() in ErrorAdmin.change_view() needs to be changed from this:
return super(ErrorAdmin, self).change_view(request, object_id, extra_context)
to this:
return super(ErrorAdmin, self).change_view(request, object_id, extra_context=extra_context)
The text was updated successfully, but these errors were encountered: