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 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

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 precedence 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.
01eb7561456566a0e4221ad9f24225108999d5b1 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...