On Thursday, March 31, 2011 12:43:32 PM UTC+1, rune wrote:
>
> Hi all, 
>
> I just started with Django, done the tutorial, now I'd like to create 
> a page were users can put 
> requests in a queue. Lets say the fields to display are user, date, 
> filepath, date to load. 
> I can create this with a modelform, but I'd like the user field to be 
> a drop down list with values, 
> read from the data base. How would I do this? 
>
> regards, 
>
> Rune


If the user field on your Queue model is a ForeignKey to the User model, 
which it should be, this will happen automatically when you create the 
modelform.
--
DR.

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