Re: is there a way to cascade foreign keys?
i should add that the reason the post was named thus was because
originally my model looked like ...
class VehMake(models.Model):
name = models.CharField(max_length=30)
class VehModel(models.Model):
name = models.CharField(max_length=30)
vehmake = models.ForeignKey(VehMake)
class VehYear(models.Model):
year = models.CharField(max_length=12)
vehmodel = models.ForeignKey(VehModel)
class VehTrim(models.Model):
trim = models.CharField(max_length=30)
vehYear = models.ForeignKey(VehYear)
--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home