Ticket #4222: changelist_override.diff
File changelist_override.diff, 881 bytes (added by , 18 years ago) |
---|
-
django/contrib/admin/options.py
113 113 prepopulated_fields = {} 114 114 filter_vertical = () 115 115 filter_horizontal = () 116 changelist = None 116 117 117 118 def __init__(self, model): 118 119 self.model = model … … 476 477 477 478 def changelist_view(self, request): 478 479 "The 'change list' admin view for this model." 479 from django.contrib.admin.views.main import ChangeList, ERROR_FLAG 480 from django.contrib.admin.views.main import ChangeList as default_changelist, ERROR_FLAG 481 ChangeList = self.changelist or default_changelist 480 482 opts = self.model._meta 481 483 app_label = opts.app_label 482 484 if not self.has_change_permission(request, None):