Re: [Django] #18211: Add a signal to notifying when a ModelAdmin has been registered with an AdminSite

2012-05-02 Thread Django
#18211: Add a signal to notifying when a ModelAdmin has been registered with an
AdminSite
---+--
 Reporter:  filip.dupanovic@…  |Owner:  nobody
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:
 Severity:  Normal |   Resolution:  wontfix
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by julien):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 I agree with Keryn that catching the `NotRegistered` or
 `AlreadyRegistered` exceptions seem like the best approach here. Please
 feel free to reopen if you have a use case where catching those exceptions
 wouldn't help.

-- 
Ticket URL: 
Django 
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 this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18211: Add a signal to notifying when a ModelAdmin has been registered with an AdminSite

2012-04-26 Thread Django
#18211: Add a signal to notifying when a ModelAdmin has been registered with an
AdminSite
---+--
 Reporter:  filip.dupanovic@…  |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by Keryn Knight ):

 * needs_docs:   => 0
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Comment:

 Are you able to provide a concrete example of how this would be
 beneficial, or fix problems you're running into that aren't solved by
 catching AlreadyRegistered/NotRegistered and taking the appropriate
 action; eg:
 {{{
 try:
 admin.site.unregister(MyModel)
 # [...]
 except NotRegistered:
 pass
 # Or do some other things, and then register a new ModelAdmin
 admin.site.register(MyModel, MyAdmin)
 }}}

-- 
Ticket URL: 
Django 
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 this group at 
http://groups.google.com/group/django-updates?hl=en.