toth anna wrote:
> I have lost in form processing while learning django.
> I need to create a simple object (say 'product') with some
> basic validation (required fields, +minimal logic), but
> after filling a form and submit it everything looks ok but
> the object does not get saved and nothing is checked.
> (generic create form)

I had this problem (nothing saved), and the cause was that validation
had failed, but my code was incomplete and so did not display any error
message to the user.

For debugging, put this at the bottom of the template for your add form
<p> {{ form.error_dict }} </p>
and you will see any validation errors.


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

Reply via email to