Changes between Version 1 and Version 2 of Ticket #19414, comment 5


Ignore:
Timestamp:
Jan 28, 2013, 12:35:50 PM (12 years ago)
Author:
BHold

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19414, comment 5

    v1 v2  
    22> Why not just reuse admin.site.register? It looks like you reimplemented the method?
    33
    4 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 all be linked to the decorated AdminClass in the Site's registry.
     4The 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 all be linked to the decorated ModelAdmin class in the Site's registry.
Back to Top