Update the model deletion confirmation page in the admin UI.

Review Request #10975 — Created March 27, 2020 and submitted

Information

Review Board
release-4.0.x

Reviewers

This adds a custom template for the delete confirmation page used in the
admin UI for models. Django's default template doesn't render quite
well, and doesn't offer any flexibility for customization. Our version
is a bit friendlier and fits our modern style in the admin UI.

This covers the main confirmation page, the "protected objects"
confirmation page (used if a ForeignKey is set to prevent deletion of
the referenced object using the PROTECT flag), or if the user doesn't
have permission for one or more objects.

Tested the standard deletion page, the permission errors page, and the
protected relations page.

Tested all the buttons on all pages.

Summary ID
Update the model deletion confirmation page in the admin UI.
This adds a custom template for the delete confirmation page used in the admin UI for models. Django's default template doesn't render quite well, and doesn't offer any flexibility for customization. Our version is a bit friendlier and fits our modern style in the admin UI. This covers the main confirmation page, the "protected objects" confirmation page (used if a `ForeignKey` is set to prevent deletion of the referenced object using the `PROTECT` flag), or if the user doesn't have permission for one or more objects.
e192073c0e09116a5082be8a73211c522192dcb5

david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.0.x (bcb2923)