Code

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


Ignore:
Timestamp:
01/28/13 10:35:50 (15 months ago)
Author:
BHold
Comment:

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.