[1.6.x] Fixed typo in docs/ref/contrib/admin/index.txt.

Backport of 06ba4b9eee from master
This commit is contained in:
africa itcase 2014-07-22 11:47:57 +06:00 committed by Tim Graham
parent 205090bc71
commit 290e389fe9
1 changed files with 1 additions and 1 deletions

View File

@ -1258,7 +1258,7 @@ templates used by the :class:`ModelAdmin` views:
filtering based on add, change, and delete permissions::
class MyModelAdmin(admin.ModelAdmin):
def get_inline_instances(request, obj=None):
def get_inline_instances(self, request, obj=None):
return [inline(self.model, self.admin_site) for inline in self.inlines]
.. method:: ModelAdmin.get_urls()