Re: complex query in limit_choices_to

2007-11-24 Thread leotr
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

complex query in limit_choices_to

2007-11-23 Thread Kenneth Gonsalves
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