I am trying to customize the list view of one of my models in the admin to separate it into a few different tables for organization purposes.
My model is an "order". The important fields for this problem are the user who placed the order, the date is was placed, the restaurant it was for, and the item at that restaurant they ordered. I have the date filtering set up with date_hierarchy so that's all okay, but what people would really like to be able to do is sort by restaurant THEN by items within that restaurant. Is that possible with the current admin? If not, what I'd like to do is break this out into a series of different tables, one for each restaurant. Then you'd be able to sort by item within those tables. I looked at: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates which says you can override admin templates on a per model basis, and I was able to do so for my change_list.html template, however I can't do it for the change_list_results.html template which is referenced by the results_list templatetag and handles the actual table output. In order to accomplish this, would I need to define a new custom templatetag and call it from the custom change_list.html template? Is there an easier way to do what I want? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

