Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#19959 closed Bug (invalid)

ModelAdmin.get_formsets code snippet wrong

Reported by: mjl@… Owned by: nobody
Component: Documentation Version: master
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


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/ is:

    def get_inline_instances(self, request):

Change History (1)

comment:1 Changed 5 years ago by Simon Charette

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 5 years ago by Simon Charette (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top