Permalink
Browse files

[1.4.x] Fixed arguments for get_inline_instances; refs #17006.

  • Loading branch information...
1 parent e7685b8 commit 13bbe9161d38d3c0778577a3547fab2d181a8e5e @timgraham timgraham committed Oct 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/ref/contrib/admin/index.txt
@@ -1159,7 +1159,7 @@ templates used by the :class:`ModelAdmin` views:
inlines = [MyInline, SomeOtherInline]
def get_formsets(self, request, obj=None):
- for inline in self.get_inline_instances():
+ for inline in self.get_inline_instances(request):
# hide MyInline in the add view
if isinstance(inline, MyInline) and obj is None:
continue

0 comments on commit 13bbe91

Please sign in to comment.