#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 -------------------------------+------------------------------------ Changes (by BHold):
* has_patch: 0 => 1 Comment: Added pull request: https://github.com/django/django/pull/599 I added a decorator that registers Model/ModelAdmin pairs with AdminSites. I mostly followed how the AdminSite.register method currently does this. Passes all tests, including those I added. This is only my 2nd time contributing to the project, and first time writing Sphinx docs, so please let me know if I didn't follow any conventions! -- Ticket URL: <https://code.djangoproject.com/ticket/19414#comment:3> 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.