Ticket #4926: ordering_patch_main.py.diff
File ordering_patch_main.py.diff, 517 bytes (added by , 17 years ago) |
---|
-
main.py
428 428 qs = qs.select_related() 429 429 430 430 # Set ordering. 431 qs = qs.order_by(order_type + lookup_order_field) 431 ordering = self.model_admin.ordering or self.lookup_opts.ordering or () 432 qs = qs.order_by(order_type + lookup_order_field, *ordering) 432 433 433 434 # Apply keyword searches. 434 435 def construct_search(field_name):