thanks for the answer... anyway, my problem is that i already
have a database so i don't really want to change it.
in this case in particular i have a table called 'teachings'
(that should be managed by the model i created)
where all the subjects taught by a professor r stored.
for each subject (in the teachings table) a single varchar field
is used to store both a day and a time range to indicate when
students can go to talk with the professor about that subject.
so, i think it would be more user friendly to have 3
choicefields: the first one for the day of the week,
the second one for the "from time" field and the last one
for the "to time" field.

i hope what i would like to obtain is more clear :s



On Nov 5, 9:08 am, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> mondonauta schrieb:> hello, sorry i'm newb so that's y i need your help.
> > i made a model... and thanks django, it's very simple... but my
> > problem
> > is that i want 1 specific field from this model to be split in 3
> > choiceFields.
>
> Using MultiValueField is not easy. What kind of data do you have?
> Why do you want it to split?
>
> Maybe you just need to write a own Widget which sublcasses
> from MultiWidget and override the render method?
>
>  HTH
>     Thomas
>
> --
> Thomas Guettler,http://www.thomas-guettler.de/
> E-Mail: guettli (*) thomas-guettler + de
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to