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)

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

Download all attachments as: .zip

Change History (4)

by Dennis Kaarsemaker, 15 years ago

Attachment: bug-11454.diff added

Trivial patch

comment:1 by Dennis Kaarsemaker, 15 years ago

Has patch: set

comment:2 by Tim Graham, 15 years ago

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

comment:3 by Russell Keith-Magee, 15 years ago

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