#19959 closed Bug (invalid)
ModelAdmin.get_formsets code snippet wrong
Reported by: | 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):
Note:
See TracTickets
for help on using tickets.
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?