Update all model registrations to use the new AdminSite and ModelAdmin.

Review Request #11039 — Created May 27, 2020 and submitted — Latest diff uploaded

Information

Review Board
release-4.0.x

Reviewers

With the introduction of new AdminSite and ModelAdmin classes for
our new administration UI, it's important that we set a precedent of
using these new classes for all model registration, even though the new
versions are compatible with the old ones.

This change switches all model registration to use our new AdminSite
explicitly, and switches all ModelAdmin subclasses to use our new base
class.

Unit tests pass.

Verified that these were registered correctly in the admin UI.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Update all model registrations to use the new AdminSite and ModelAdmin.
With the introduction of new `AdminSite` and `ModelAdmin` classes for our new administration UI, it's important that we set a precedent of using these new classes for all model registration, even though the new versions are compatible with the old ones. This change switches all model registration to use our new `AdminSite` explicitly, and switches all `ModelAdmin` subclasses to use our new base class.
384be35b6713e5d3a5e1a11a38f843258075851d Christian Hammond
reviewboard/accounts/admin.py
reviewboard/attachments/admin.py
reviewboard/changedescs/admin.py
reviewboard/diffviewer/admin.py
reviewboard/hostingsvcs/admin.py
reviewboard/integrations/admin.py
reviewboard/notifications/admin.py
reviewboard/oauth/admin.py
reviewboard/reviews/admin.py
reviewboard/scmtools/admin.py
reviewboard/site/admin.py
reviewboard/webapi/admin.py
Loading...