Changes between Initial Version and Version 1 of Ticket #19414, comment 5
- Timestamp:
- Jan 28, 2013, 12:32:48 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19414, comment 5
initial v1 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 beall 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 AdminClass in the Site's registry.