Opened 7 years ago

Closed 7 years ago

#11454 closed (fixed)

ModelAdmin documentation correction

Reported by: m0nonoke Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: typo
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


For the url

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,

On the last line brackets do not balance.

Attachments (1)

bug-11454.diff (534 bytes) - added by Dennis Kaarsemaker 7 years ago.
Trivial patch

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Dennis Kaarsemaker

Attachment: bug-11454.diff added

Trivial patch

comment:1 Changed 7 years ago by Dennis Kaarsemaker

Has patch: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 7 years ago by Tim Graham

Keywords: typo added
milestone: 1.0.3
Triage Stage: UnreviewedReady for checkin
Version: 1.0SVN

comment:3 Changed 7 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [11217]) Fixed #11454 -- Corrected mismatched parenthesis in admin docs. Thanks to seveas for the report.

Note: See TracTickets for help on using tickets.
Back to Top