Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 13bbe9161d38d3c0778577a3547fab2d181a8e5e 1 parent e7685b8
Tim Graham authored October 20, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/ref/contrib/admin/index.txt
2  docs/ref/contrib/admin/index.txt
@@ -1159,7 +1159,7 @@ templates used by the :class:`ModelAdmin` views:
1159 1159
             inlines = [MyInline, SomeOtherInline]
1160 1160
 
1161 1161
             def get_formsets(self, request, obj=None):
1162  
-                for inline in self.get_inline_instances():
  1162
+                for inline in self.get_inline_instances(request):
1163 1163
                     # hide MyInline in the add view
1164 1164
                     if isinstance(inline, MyInline) and obj is None:
1165 1165
                         continue

0 notes on commit 13bbe91

Please sign in to comment.
Something went wrong with that request. Please try again.