Re: Help filter with Admin

2008-02-08 Thread sanrioyt
Hi whiteinge, OK. I was using firefox and that did not work. But with IE it works well. Thanks, sanrio On Feb 7, 9:08 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > On Feb 7, 3:06 pm, [EMAIL PROTECTED] wrote: > > > Can you please give an example of what the list_filter be > > in the model

Re: Help filter with Admin

2008-02-07 Thread Nathaniel Whiteinge
On Feb 7, 3:06 pm, [EMAIL PROTECTED] wrote: > Can you please give an example of what the list_filter be > in the model, to get the filterting to work? Is it just not showing up after the existing list_filter options? Assuming your current list_filter looks like: list_filter = ('affiliation', 'pu

Re: Help filter with Admin

2008-02-07 Thread sanrioyt
Hi whiteinge, I downloaded the example you have posted on djangosnippets and put it in the "suggested" place. However, I could not get it to work. (I am very novice regarding jQuery). Can you please give an example of what the list_filter be in the model, to get the filterting to work? Thanks,

Re: Help filter with Admin

2008-02-04 Thread sanrioyt
Thanks a lot. I'll try it. sanrio On Feb 4, 1:18 am, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > On Feb 3, 7:56 pm, [EMAIL PROTECTED] wrote: > > > Is there a way to select both 'A' and 'B' under affiliation and get > > both Tom and Diane? > > You can use non-standard filters in the Admin by

Re: Help filter with Admin

2008-02-03 Thread Nathaniel Whiteinge
On Feb 3, 7:56 pm, [EMAIL PROTECTED] wrote: > Is there a way to select both 'A' and 'B' under affiliation and get > both Tom and Diane? You can use non-standard filters in the Admin by manually typing the in the URL. For example: http://yoursite/admin/yourapp/student/?school__in=1,2 Unfortunatel

Re: Help filter with Admin

2008-02-03 Thread sanrioyt
Sorry, I guess I did not explain too well. What I am asking has to do with list_filter = ('affiliation', 'publication', 'research',) in the admin. This displays a list on the right hand side of the admin. If I have Tom in school 'A', and Diane in school 'B'. I can filter on affiliation on 'A', a

Re: Help filter with Admin

2008-02-03 Thread sanrioyt
Hi, How do I hook that into the Admin? This is what I don't know. Thanks, sanrio On Feb 3, 4:09 pm, William Siegrist <[EMAIL PROTECTED]> wrote: > Have you tried using the IN filter? > > Student.objects.filter(school__in = [A, B]) > > http://www.djangoproject.com/documentation/db-api/#in > > -Bi

Re: Help filter with Admin

2008-02-03 Thread William Siegrist
Have you tried using the IN filter? Student.objects.filter(school__in = [A, B]) http://www.djangoproject.com/documentation/db-api/#in -Bill On Feb 3, 2008, at 1:41 PM, [EMAIL PROTECTED] wrote: Hi, I have a situation whereby I need to use filters with "OR" . Here is a description of my

Help filter with Admin

2008-02-03 Thread sanrioyt
Hi, I have a situation whereby I need to use filters with "OR" . Here is a description of my model: 1) A student affiliated to only one school. (ForeignKey) 2) A student can only have one publication. (ForeignKey) 3) A student can have multiple research interest(s). (ManytoManyField) I want to