#11454: ModelAdmin documentation correction
---------------------------+------------------------------------------------
 Reporter:  m0nonoke       |       Owner:  nobody    
   Status:  new            |   Milestone:  1.0.3     
Component:  Documentation  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 For the url http://docs.djangoproject.com/en/dev/ref/contrib/admin
 /#modeladmin-options

 The section '''OTHER METHODS > ModelAdmin.history_view'''

 Code example


 {{{
 class MyModelAdmin(admin.ModelAdmin):

     # A template for a very customized change view:
     change_form_template =
 'admin/myapp/extras/openstreetmap_change_form.html'

     def get_osm_info(self):
         # ...

     def change_view(self, request, object_id, extra_context=None):
         my_context = {
             'osm_data': self.get_osm_info(),
         }
         return super(MyModelAdmin, self).change_view(request, object_id,
             extra_context=my_context))
 }}}


 '''On the last line brackets do not balance.'''

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11454>
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to