I would caution you to think in the terms of the data storage (models) separately from data entry (forms via views). Most likely you want a class Person which would have a field for title. Maybe the title field is a FK to the Title model, maybe it is a charfield with or without 'choices' depending on your particular needs. As far as a form with 3 people, you probably are talking again about a ThreeRelatedPeople model (perhaps there is more descriptive name) that needs to track three people. It could have one m2m or 3 fks to Person depending on the strictness of the requirement for 3 and the business logic it supports. If you went this route, you could present a user with a form for ThreeRelatedPeople and they could choose three existing or create the requisite Person objects. -richard
On 5/21/08, Lance F. Squire <[EMAIL PROTECTED]> wrote: > > > I'm trying to make a Form where 3 people need to be inputed. All three > need to have a Title.(EG. Mr. Mrs. etc.) > > I tried making the Title fields in the database be a key to a table of > title selections. The sql generation had no trouble with that, but the > Form generator doesn't like it at all... > > I had them as character fields, but couldn't figure out how to get > them to become select/choice fields after the form was auto generated > from the table, before the view... > > I'm new to Django. Played with Rails some, but mostly work in Perl/ > Postgres > > Also looked at having the people in separate tables, but it didn't > seem practical either from a filling in data point or a rendering/ > parching the form point. > > Thanks for any help and/or pointers. > Lance > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---