On 8/18/07, Peter Melvyn <[EMAIL PROTECTED]> wrote:
>
>
> On 8/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > But how do I pass the 'user' object to the Form so I can use it in
> > filter() or run .groups.all() on it?
>
> I do it this way:
>
> self.fields['emails'].queryset =
> BIZEmail.objects.filter(owner=oa_request.user.id)
> self.fields['emails'].widget.choices = self.fields['emails'].choices


That's what I needed!

TA

J.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to