Monday, August 13, 2012

Re: Using Forms without Request Data

On 13-8-2012 23:04, Kurtis wrote:
> Actually, I'm creating a new object with this form. If it helps to
> understand the scenario, I'm taking in JSON and creating an object out of
> the data. But, I can't just pass the raw POST QueryDict because the data
> doesn't map correctly by any means.

data argument to a form instance must be a dictionary-like object. Other
then that there's no requirements.
I'm kinda curious why you need a form if you're using a non-html data
format.

--
Melvyn Sopacua

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate