Code

Opened 17 months ago

Closed 17 months ago

Last modified 17 months 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

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):

Attachments (0)

Change History (1)

comment:1 Changed 17 months 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?

Last edited 17 months ago by charettes (previous) (diff)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.