Opened 15 years ago
Closed 15 years ago
#11454 closed (fixed)
ModelAdmin documentation correction
Reported by: | m0nonoke | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | typo | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Attachments (1)
Change History (4)
by , 15 years ago
Attachment: | bug-11454.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|
comment:2 by , 15 years ago
Keywords: | typo added |
---|---|
milestone: | 1.0.3 |
Triage Stage: | Unreviewed → Ready for checkin |
Version: | 1.0 → SVN |
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Trivial patch