[Answered ]-Restrict queryset sent to django form

2👍

You can easily get a QuerySet of Person objects by following the reverse relationship to TaskPerson
http://docs.djangoproject.com/en/dev/topics/db/queries/#following-relationships-backward

form.fields['field'].queryset = Person.objects.filter(taskperson__task=thistask)

Leave a comment