Hello Greg and Jirka, Thanks for the help.
I was rereading the tutorial to understand the ForeignKey. It says that ForeignKey "tells Django each Choice is related to a single Poll." In my case, each lawyer is associated with 1 law school; and each law school is associated with 1 or more lawyers. Considering this I thought that ForeignKey should tell Django that "each lawyer is related to a single School" so I put ForeignKey under Lawyer: class Education(models.Model): school = models.CharField(max_length=200) class Lawyer(models.Model): first = models.CharField(max_length=20) initial = models.CharField(max_length=2) last = models.CharField(max_length=20) year_graduated = models.DateTimeField('Year graduated') education = models.ForeignKey(Education) Does this make sense? And, can you explain why this is needed in terms of searching the database? What happens if I don't use a foreign key? Thanks again. On Nov 9, 7:36 am, Jirka Vejrazka <jirka.vejra...@gmail.com> wrote: > > I commented out the ForeignKey because it caused an error. > > Just a small coding note - it was causing an error because you did not > specify the model name exactly (compare the character case) > > Jirka --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---