Update all model registrations to use the new AdminSite and ModelAdmin.
Review Request #11039 — Created May 27, 2020 and submitted
With the introduction of new
AdminSite
andModelAdmin
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 allModelAdmin
subclasses to use our new base
class.
Unit tests pass.
Verified that these were registered correctly in the admin UI.
- Change Summary:
-
- Fixed a missing blank line.
- Fixed a typo in the description.
- Description:
-
With the introduction of new
AdminSite
andModelAdmin
classes for~ our new administration UI, it's important that we set a precedence of ~ 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 baseclass. - Commits:
-
Summary ID 01eb7561456566a0e4221ad9f24225108999d5b1 384be35b6713e5d3a5e1a11a38f843258075851d - Diff:
-
Revision 2 (+144 -146)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.