mirror of https://github.com/django/django.git
[1.6.x] Fixed typo in docs/ref/contrib/admin/index.txt.
Backport of 06ba4b9eee
from master
This commit is contained in:
parent
205090bc71
commit
290e389fe9
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue