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 lawyer
> 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 ar
What you need is to keep your Education model as is (with no Lawyer
Foreignkey) and add a ManyToManyField on your Lawyer class pointing to
Education. Then you can go
Lawyer.objects.filter(education__school='...')
I think that will solve your problem
Greg
2009/11/9 Zeynel :
>
> Hello,
>
> I d
Hello,
I decided to start my own project with what I learned from part 1 of
the tutorial.
I have the project in C:\sw\sw\wkw
The app sw.wkw is a prototype for a "who-knows-who" database for legal
profession. I wanted to start with a really simple model:
class Lawyer(models.Model):
first =
4 matches
Mail list logo