Tuesday, February 7, 2012

Re: field of tuples

Wouldn't it be better to do this sort of thing with a related model?

On Feb 7, 2012 4:44 AM, "Jaroslav Dobrek" <jaroslav.dobrek@gmail.com> wrote:
Hello,

how can I create a field that contains tuples of entities? An example:
A model "Candidate" (someone who applies for a job) might have a field
"languages" which is a list of tuples consisting of a language and a
proficiency level.

Jaroslav

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

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

No comments:

Post a Comment