Opened 3 years ago

Closed 3 years ago

Last modified 3 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 3 years ago by charettes

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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?

Version 0, edited 3 years ago by charettes (next)
Note: See TracTickets for help on using tickets.
Back to Top