Undocumented admin feature for filtering rows?

2007-12-26 Thread Mingers
Hi everyone, I've been working on a problem where I'd like the admin to be able to filter for rows based on certain conditions for the list display, i.e. basically anything that can be used as keyword arguments in .objects.filter(**kwargs) should be allowed as a filter for the list display. Curr

Re: Undocumented admin feature for filtering rows?

2007-12-26 Thread Adrian Holovaty
On Dec 26, 2007 6:10 AM, Mingers <[EMAIL PROTECTED]> wrote: > Turns out, this is already partially implemented (by accident?). From > the admin, you can already filter rows for the list display by passing > GET arguments, ie. /admin///? > __gt=10&__lt=20 > > Well, I'm a django newbie, so you all

Re: Undocumented admin feature for filtering rows?

2007-12-26 Thread jdetaeye
Mingers, I have pretty much the same use case as you: I wanted the filtering in the admin to be more "like a spreadsheet". See the screenshot on my website to see how I solved the issue: http://www.frepple.com/screenshots/miniadmin.png It allows the user to enter the filter value, select a fil

Re: Undocumented admin feature for filtering rows?

2007-12-26 Thread John-Scott Atlakson
We're using this 'hidden' feature as well, for similar reasons. I built a search form that allows the user to select multiple parameters to filter by. I just named the form fields using the appropriate lookup form of the field names (for example, a form TextField named user__first_name, etc.). H

Re: Undocumented admin feature for filtering rows?

2007-12-27 Thread Mingers
Well always good to hear confirmation that my use case isn't crazy. Johan, that looks great. It's what I would want to be able to do in the admin. I'd say I'm a big fan of spreadsheet like views as well. I've used FoxPro, and though it ain't a pretty language, it's database viewer is great--wri

Re: Undocumented admin feature for filtering rows?

2008-01-07 Thread Nathaniel Whiteinge
On Dec 26 2007, 2:50 pm, jdetaeye <[EMAIL PROTECTED]> wrote: > The implementation is not based on customizing the admin, but > implementing a generic view with very similar capabilities as the > django changelist view. In all, around 800 lines of code. Johan, that screenie looks very nice. Any ch

Re: Undocumented admin feature for filtering rows?

2008-01-07 Thread jdetaeye
On Jan 7, 4:55 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > On Dec 26 2007, 2:50 pm, jdetaeye <[EMAIL PROTECTED]> wrote: > > > The implementation is not based on customizing the admin, but > > implementing a generic view with very similar capabilities as the > > django changelist view. I

Re: Undocumented admin feature for filtering rows?

2008-01-08 Thread Tai Lee
+1 interested party ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to