Gonzalo Delgado wrote: > > The question is: why doesn't something like this work: > > ticketform.fields['server'].queryset = > Server.objects.filter(users=request.user) > ? > It doesn't end up on any error, but the rendered form doesn't filter out the > server choices.. any clue? > > Sounds like you're hitting bug 4787 (http://code.djangoproject.com/ticket/4787), where the change in queryset on the field doesn't get propagated to the widget. You can work around by assigning to the widget's choices directly : ticketform.fields['server'].widget.choices = ticketform.fields['server'].choices (after changing the field's choices, obviously)
Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---