>     LOOKUP_PEOPLE = (
>     ('person1', 'person1'),
>     ('person2', 'person2'),
>     ('person3', 'person3'),
>     ) 
>
    role_for_who = models.CharField('Role for', max_length=50, 
> choices=LOOKUP_PEOPLE)
>

Thanks in advance for any help. I almost had it - I wish - but don't think 
django liked starting with an empty database.

When defining the models.py, rather than use a handtyped LOOKUP_PEOPLE (as 
above) I would like LOOKUP_PEOPLE to provide the choices from a list of 
forenames. How do I do that, when the forenames are in the same 'class 
People'?
(I understand I won't see these in the models.py file).

Thanks again.


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3d80243b-a949-4535-8fd1-90f45c938fd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to