On database level that should be done by UNIQUE constraints.
And your problem should be made on form level.
read about ChoiceField in newforms documentation
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
hi,
I have two models called Child and Sponsor. There is a model called
Sponsorship which has foreign keys to Child and Sponsor. For the
foreign key to Child, I want to limit choices to all those children
who are *not* already a foreign key to sponsorship and who are
active. This is the
2 matches
Mail list logo