Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 13bbe9161d38d3c0778577a3547fab2d181a8e5e 1 parent e7685b8
@timgraham timgraham authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/ref/contrib/admin/index.txt
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.