> form.category.queryset = > Category.objects.filter(blog__exact=request.user.author_set.all() > [0].blog) print form.category.queryset
I am somewhat surprised that this would work at all. The field objects should be accessible via FormClass.base_fields['fieldname'] or form_instance.fields['fieldname'] so you should be able to say for example: form_instance.fields['fieldname'].queryset = myqueryset There is also: form_instance.fields['fieldname'].choices form_instance.fields['fieldname'].widget.choices AFAIK, at some point in the past there were issues with choices not being updated when the queryset was changed, but that should have been fixed a long time ago. Michael --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---