Hi,
when using UpdateView with formset (inlineformset_factory), I randomly got
KeyError (page works, refresh, error, refresh, works, ...)
Django Version: 1.7
Exception Type: KeyError
Exception Value: 0
Exception Location: ...\django\forms\models.py in _construct_form, line
593
Python Version: 3.4.0
I looked up django source and found:
except IndexError:
pass
I thought it was possibly caused by some changes in python 3.x, so I just
changed it to
except (IndexError, KeyError):
pass
and it seems to work, but I want to make sure I'm not sweeping something
else under the rug.
So... am I?
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/60038753-d692-4ef4-a371-106e080fb0a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.