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 Branch(models.M
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 = models.BooleanField(default=
2 matches
Mail list logo