Kaydet (Commit) 300d0527 authored tarafından Tim Graham's avatar Tim Graham

Fixed arguments for get_inline_instances example; refs #17856

üst cfb3eb2e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment