- Fix how the demo site stopped working because of bad settings
- Fix how extra_context set by admins was not passed
- Fix how if you had multiple admins, you always got redirected to the default admin
- Renames
objectactions
tochange_actions
- Removes
get_objectactions
(see below) - Adds
changelist_actions
for creating action tools in the change list view too - Adds
get_change_actions
andget_changelist_actions
-
Deleted
get_objectactions(request, context, **kwargs)
. If you used this before, useget_change_actions(request, object_id, form_url)
instead. To get at the original object, instead ofcontext['original']
, you can useself.model.get(pk=object_id)
,self.get_object(request, object_id)
, etc. This isn't as convenient as it used to be, but now it uses the officially documented way to add extra context to admin views. https://docs.djangoproject.com/en/dev/ref/contrib/admin/#other-methods -
Renamed
objectactions
. In your admin, instead of defining your actions in theobjectactions
attribute, usechange_actions
.