Friday, July 27, 2012

Re: form.save() fails silently - how to debug?

The clean() method basically stores the non-model field data in the model's dictionary field.  If this method was faulty, then it would also cause problems in the test code.  As I said, when I print the data to console it looks OK.  I am still trying to find how and where the save() method indicates errors...?

On Thursday, 26 July 2012 21:35:28 UTC+2, JirkaV wrote:
Sorry, I should have read your code before answering.

I'm struggling to understand what you do in your clean() method. Are
you sure you're returning the right set of data?

  Jirka

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/JCrc-ka0EmwJ.
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.

No comments:

Post a Comment