On Thursday, February 24, 2011 04:21:46 am galago wrote:
> Thanks, that's the way I'll do it:)
> But now I have 1 more problem. In ModelForm I want to get some data about
> user from DB. I nedd to filter user provinces. How canI call the user  id
> in my query? I pass request.user as form instance in view: form =
> ProvinceForm(instance=request.user)
> How to read that inside my form? self.instance.id doesn't work:/

Whats the forms __init__ method look like?

Mike
-- 
Q:      What's hard going in and soft and sticky coming out?
A:      Chewing gum.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to