From 300d052713a4312bcfca334ea34b348d57549950 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 20 Oct 2012 09:57:15 -0400 Subject: [PATCH] Fixed arguments for get_inline_instances example; refs #17856 --- docs/ref/contrib/admin/index.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 72066ca799..e9b573e3a0 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -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