#19414: Add a "register" class decorator for admin.
-------------------------------+------------------------------------
     Reporter:  stavros        |                    Owner:  BHold
         Type:  New feature    |                   Status:  new
    Component:  contrib.admin  |                  Version:  1.4
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by BHold):

 Replying to [comment:4 stavros]:
 > Why not just reuse admin.site.register? It looks like you reimplemented
 the method?

 The decorator function should behave a little differently than the normal
 register method of the Site. For one, it should accept a 'site' argument
 so that a user can use it with a custom Site model. It also should be able
 to accept multiple models as arguments that will be all be linked to the
 decorated AdminClass in the Site's registry.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19414#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to