Changes between Version 1 and Version 2 of Ticket #19414, comment 5
- Timestamp:
- Jan 28, 2013, 12:35:50 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19414, comment 5
v1 v2 2 2 > Why not just reuse admin.site.register? It looks like you reimplemented the method? 3 3 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.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 ModelAdmin class in the Site's registry.