Re: How can I re-use the filtering and sorting from the admin pages in my view?

2007-08-01 Thread johan de taeye
Ben, Vince, Thanks for the input! It confirms what I suspected after a brief scan through the admin doc and the code. Johan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: How can I re-use the filtering and sorting from the admin pages in my view?

2007-07-31 Thread vince
I asked about this same issue a while back because this is a feature that I think would be really handy. Not sure how feasible it would be however. I put something together after reviewing of the html source of the admin pages. I did *not* look at the python source (too complicated for me :). It

Re: How can I re-use the filtering and sorting from the admin pages in my view?

2007-07-31 Thread Ben Ford
Johan, I used some of the admin functionality in my views and to be honest I wish I hadn't... It's pretty difficult to extend and I'm kinda stuck now! I'm not sure what the newforms admin brings to the table (or even if it's merged into trunk yet) so maybe you'd want to look at that? Ben On

How can I re-use the filtering and sorting from the admin pages in my view?

2007-07-31 Thread johan de taeye
Folks, Any thoughts on how I can implement the following elegantly in Django? A first table contains let's say "product" records, which have a bunch of attributes on which the admin pages provide filtering and sorting. A second table contains "sales" records, which have a field referring to