Re: boolwan field filter

2011-05-09 Thread nederhoed
A bit off topic, but I can't resist. Does a college really always have 4 "branches"? (I might be mistaken, but a branch sounds to me like a dynamic property.) I would consider using a many-to-many relation between colleges and branches. It would change your question a lot... class

boolwan field filter

2011-05-09 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 =