I've got several select boxes in a user profile that the we can
manipulate in /admin.  One of these select boxes is called "locations"
and has locations to which you can assign a user.

for explanation, let's say that that the select box is populated like
such:


1,location1
2,location2
3,location3
4,location4

where the numbers are the option values and the text is the option
text.

In this user profile, if they choose ocation1,location2,location3, it
saves to a session variable as "1,2,3" (and of course also saves in
their profile.)

so far so good.


now here's what i need help with.

On the public side of the site, they'll login and do certain things.
i want to have a select box (as previously described), HOWEVER, i only
want it populated with options 1,2 and 3 (the values in their session
variable)... not the 4th location since they haven't been assigned to
that location.


I can't load it through the "CHOICES" parameter in my forms field...
how can I do this?

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