Commit 13bbe916 authored by Tim Graham's avatar Tim Graham
Browse files

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

parent e7685b87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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