I just want to render a formfield as a select field without having to
create a Form class.

Why does this not work?

from django import newforms as forms
ConfForm = forms.models.form_for_model(Conference)
form = ConfForm()
choices = (
    ('Monday','Monday',),
    ('Tuesday','Tuesday',),
    ('Wednesday','Wednesday',),
    ('Thursday','Thursday',),
    ('Friday','Friday',),
    ('Saturday','Saturday',),
    ('Sunday','Sunday',)
    )
day_of_week = forms.Select('day_of_week')
day_of_week.render('day_of_week','Monday',None,choices)

exceptions.ValueError                                Traceback (most
recent call last)

blah...blah...

ValueError: dictionary update sequence element #0 has length 1; 2 is
required


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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