#10640: Add `add_form_template` option to ModelAdmin
----------------------------------+-----------------------------------------
 Reporter:  dcramer               |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  SVN       
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 In some use cases we've found that we need to slightly tweak our change
 templates. Typically this is because the change view isn't directly
 changing the object, but it's handling it in some other way.

 One small problem that came across was there's no way to specify the add
 page's template versus the change page's template.

 I propose simply modifying render_change_form, to check for add=True, and
 if it's present, check for add_form_template. If add_form_template is set
 in the ModelAdmin to a value it should look for that template first. If
 it's set to None, it should use the default templates (and not
 change_form_template).

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

Reply via email to