Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#19959 closed Bug (invalid)

ModelAdmin.get_formsets code snippet wrong

Reported by: mjl@… Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The example code snippet in django/docs/ref/contrib/admin/index.txt around line 1218 says:

for inline in self.get_inline_instances(request, obj):

but the signature for that method (in django/contrib/admin/options.py) is:

    def get_inline_instances(self, request):

Change History (1)

comment:1 by Simon Charette, 11 years ago

Resolution: invalid
Status: newclosed

The obj parameter was added in version 1.5 as noted in the documentation.

Are you reading the documentation of django >= 1.5 while using django < 1.5?

Last edited 11 years ago by Simon Charette (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top