mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
newforms-admin: Renamed ModelAdmin.change_list_view() to ModelAdmin.changelist_view() to be consistent with other methods (no underscore)
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5a000ea8a9
commit
f9019a7a7b
@ -102,7 +102,7 @@ class ModelAdmin(object):
|
||||
|
||||
# Delegate to the appropriate method, based on the URL.
|
||||
if url is None:
|
||||
return self.change_list_view(request)
|
||||
return self.changelist_view(request)
|
||||
elif url.endswith('add'):
|
||||
return self.add_view(request)
|
||||
elif url.endswith('history'):
|
||||
@ -323,7 +323,7 @@ class ModelAdmin(object):
|
||||
})
|
||||
return render_change_form(self, model, manipulator, c, change=True)
|
||||
|
||||
def change_list_view(self, request):
|
||||
def changelist_view(self, request):
|
||||
"The 'change list' admin view for this model."
|
||||
from django.contrib.admin.views.main import ChangeList, ERROR_FLAG
|
||||
opts = self.model._meta
|
||||
|
Loading…
x
Reference in New Issue
Block a user