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

Review Request #1988 — Created Sept. 1, 2020 and updated

guest9572
Review Board
433889e...
demo
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.

Testing Done:
Unit tests pass.

Verified that these were registered correctly in the admin UI.

Reviewed at https://reviews.reviewboard.org/r/11039/


Description From Last Updated

open issue

guest8832guest8832

wrong import

guest1023guest1023

b

guest9572guest9572

why so dramatic change?

guest9572guest9572

to many empty lines

guest1023guest1023

admn or not to admin, that is the question

guest9572guest9572
guest9572
guest9572
  1. 
      
  2. reviewboard/changedescs/admin.py (Diff revision 1)
     
     

    admn or not to admin, that is the question

  3. 
      
guest9572
  1. 
      
  2. reviewboard/accounts/admin.py (Diff revision 1)
     
     

    why so dramatic change?

  3. 
      
guest8832
  1. 
      
  2. open issue
  3. 
      
guest8832
  1. Ship It!
  2. 
      
guest8832
  1. header

  2. 
      
guest6890
  1. Ship It!
  2. 
      
guest6890
  1. Ship It!
  2. 
      
guest1023
  1. 
      
  2. reviewboard/accounts/admin.py (Diff revision 1)
     
     

    wrong import

  3. reviewboard/attachments/admin.py (Diff revision 1)
     
     

    to many empty lines

  4. 
      
Loading...