Re: filter in python

2011-05-10 Thread pankaj sharma
thanku very much. On May 9, 11:02 pm, Jani Tiainen wrote: > On Mon, 2011-05-09 at 06:15 -0700, pankaj sharma wrote: > > i have 4 branches in a college.. > > some college have three some have 4 and so on > > so i want to provide a search system to the user that they can

Re: filter in python

2011-05-10 Thread Jani Tiainen
On Mon, 2011-05-09 at 06:15 -0700, pankaj sharma wrote: > i have 4 branches in a college.. > some college have three some have 4 and so on > so i want to provide a search system to the user that they can see the > list of all the colleges which are having some branch say branch2 may > be he

Re: filter in python

2011-05-09 Thread pankaj sharma
i have 4 branches in a college.. some college have three some have 4 and so on so i want to provide a search system to the user that they can see the list of all the colleges which are having some branch say branch2 may be he can select branch 3 and 4 and 1 also so i am taking a query from the

Re: filter in python

2011-05-09 Thread Jani Tiainen
Since I'm not really good at reading people minds, can you clarify your question, preferably with code how your view/form/query does work now and how you have tried to resolve this particular problem and where the problem then is. On Mon, 2011-05-09 at 03:50 -0700, pankaj sharma wrote: > thanks

Re: filter in python

2011-05-09 Thread pankaj sharma
thanks for ur answer jani but i didn't get it . as i am getting one query for branch {which is Qbranch} so where i use this? On May 8, 10:40 pm, Jani Tiainen wrote: > On Sun, 2011-05-08 at 09:59 -0700, pankaj sharma wrote: > > hello .. > > > i am having a database of college  

Re: filter in python

2011-05-08 Thread Jani Tiainen
On Sun, 2011-05-08 at 09:59 -0700, pankaj sharma wrote: > hello .. > > > i am having a database of college which have a name city state > branches etc... > so > > class College(models.Model): > >name = models.CharField(max_length=250) > >city = models.ForeignKey(City) > >branch1

Re: filter in python

2011-05-08 Thread pankaj sharma
can i do it without using haystak actually i just want to add one more filter .. On May 8, 11:18 am, Amanjeev Sethi wrote: > Is it possible for you to use Django Haystack for search? > > http://haystacksearch.org/ -- You received this message because you are subscribed to

Re: filter in python

2011-05-08 Thread Amanjeev Sethi
Is it possible for you to use Django Haystack for search? http://haystacksearch.org/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email

filter in python

2011-05-08 Thread pankaj sharma
hello .. i am having a database of college which have a name city state branches etc... so class College(models.Model): name = models.CharField(max_length=250) city = models.ForeignKey(City) branch1 = models.BooleanField(default=False, blank=True) branch2 =