That is whoafully lacking in information. Here's a quick example of how data moves in newforms: >>> from registration.forms import RegistrationForm >>> form = RegistrationForm({'username':'jlennon','email':'[EMAIL >>> PROTECTED]','password1':'password','password2':'password'}) >>> form.cleaned_data Traceback (most recent call last): File "<console>", line 1, in <module> AttributeError: 'RegistrationForm' object has no attribute 'cleaned_data' >>> form.data {'username': 'jlennon', 'password1': 'password', 'password2': 'password', 'email': '[EMAIL PROTECTED]'} >>> form.fields {'username': <django.newforms.fields.CharField object at 0x866824c>, 'email': <django.newforms.fields.EmailField object at 0x866828c>, 'password1': <django.newforms.fields.CharField object at 0x86682cc>, 'password2': <django.newforms.fields.CharField object at 0x866830c>} >>> form.is_valid() True >>> form.cleaned_data {'username': u'jlennon', 'password1': u'password', 'password2': u'password', 'email': u'[EMAIL PROTECTED]'}
What exactly are you looking to do? That could help. Michael On Sun, Mar 30, 2008 at 5:17 AM, Rufman <[EMAIL PROTECTED]> wrote: > > if I do form = SothmeForm(fields) and fields is a dictionary, I don't > get fields in the form object. Why is this? > > > Stephane > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---