Ticket #6946: 6946_python23.diff
File 6946_python23.diff, 692 bytes (added by , 17 years ago) |
---|
-
contrib/databrowse/sites.py
123 123 124 124 def index(self, request): 125 125 m_list = [EasyModel(self, m) for m in self.registry.keys()] 126 # Now we sort the model list alphabetically. 127 m_list = [(x.__name__.lower(), x) for x in m_list] 128 m_list.sort() 129 m_list = [x[1] for x in m_list] 126 130 return render_to_response('databrowse/homepage.html', {'model_list': m_list, 'root_url': self.root_url}) 127 131 128 132 def model_page(self, request, app_label, model_name, rest_of_url=None):