Commit 300d0527 authored by Tim Graham's avatar Tim Graham
Browse files

Fixed arguments for get_inline_instances example; refs #17856

parent cfb3eb2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1148,7 +1148,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, obj):
                    # hide MyInline in the add view
                    if isinstance(inline, MyInline) and obj is None:
                        continue