Hi Piotr, What you've provided is a bit short on details for us to tell. Have you tried searching Trac for a similar issue? "Is this a bug?" questions should usually be asked on the django-users mailing list. A minimal project we can use to reproduce the error is really helpful. If you think it's a Python 3 issue, then see if you can reproduce the issue on Python 2.
Tim On Saturday, September 6, 2014 7:46:41 AM UTC-4, Piotr Gosławski wrote: > > 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/1ddcb6fc-c6b1-41d4-b5f9-dee3598eb772%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
