Hello All,

I am trying to do some filtering in the admin. I am using a
combination of
javascript and jQuery to accomplish that.

I have few questions:

1) Can I pass where OR queries in the URL? If so, what is the syntax?

2) I tried using IN in the URL. That has the following behavior:

   if I have something like:  http://mysite/admin/atlas/student/?gender__in=M,F
   That works.
   (the sql query that is generated is where gender IN ('M', ',', 'F')

   If I have: http://mysite/admin/atlas/student/?paper__in=journal1,journal2
   That does not work:
   (the sql query that is generated is: where paper IN
('j','o','u','n'...) etc.

   In other words, the IN takes everything after '=' as an element in
the IN list.

   Is there a way to accomplish a query such as:
       where paper IN ('journal1', 'journal2')

I appreciate any input.

Thanks a lot,
sanrio




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to