You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/usr/lib/pymodules/python2.6/django/forms/formsets.py" in init
self._construct_forms()
File "/usr/lib/pymodules/python2.6/django/forms/formsets.py" in _construct_forms
self.forms.append(self._construct_form(i))
File "/usr/lib/pymodules/python2.6/django/forms/models.py" in _construct_form
form = super(BaseInlineFormSet, self)._construct_form(i, **kwargs)
File "/usr/lib/pymodules/python2.6/django/forms/models.py" in _construct_form
pk = self.data[pk_key]
File "/usr/lib/pymodules/python2.6/django/utils/datastructures.py" in getitem
raise MultiValueDictKeyError("Key %r not found in %r" % (key, self))
Exception Type: MultiValueDictKeyError at /examples/inline-formset-autocomplete/
Exception Value: "Key 'ordered_items-0-id' not found in <QueryDict: {u'ordered_items-0-quantity': [u'5'], u'ordered_items-2-quantity': [u'1'], u'ordered_items-3-product': [u'3'], u'ordered_items-5-quantity': [u''], u'ordered_items-3-quantity': [u'3'], u'ordered_items-1-order': [u'1'], u'ordered_items-4-product': [u'3'], u'ordered_items-0-product': [u'1'], u'ordered_items-2-product': [u'7'], u'ordered_items-5-product': [u''], u'ordered_items-1-quantity': [u'1'], u'ordered_items-INITIAL_FORMS': [u'5'], u'ordered_items-2-order': [u'1'], u'ordered_items-0-order': [u'1'], u'ordered_items-4-order': [u'1'], u'ordered_items-TOTAL_FORMS': [u'6'], u'ordered_items-4-quantity': [u'5'], u'customer': [u'Kermit the frog'], u'ordered_items-1-product': [u'3'], u'ordered_items-MAX_NUM_FORMS': [u''], u'ordered_items-5-order': [u'1'], u'ordered_items-3-order': [u'1']}>" What version of the product are you using? On what operating system? 1.2 Firefox GNU/Linux Please provide any additional information below. the template "inline-formset-autocomplete.html" is missing the following two lines which are in inline-formset.html. If you add them it doesn't crash:
{% for fld in form.hidden_fields %}{{ fld }}{% endfor %}
{% if form.instance.pk %}{{ form.DELETE }}{% endif %}
thanks for all your work on django-dynamic-formset, it's really neat!
From bshan...@gmail.com on January 13, 2011 12:06:33
What steps will reproduce the problem? 1. Go to the inline-formset-autocomplete example and hit "submit". it crashes.
What do you see instead?
Environment:
Request Method: POST
Request URL: http://localhost:8000/examples/inline-formset-autocomplete/
Django Version: 1.2.3
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'example']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')
Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response
Exception Type: MultiValueDictKeyError at /examples/inline-formset-autocomplete/
Exception Value: "Key 'ordered_items-0-id' not found in <QueryDict: {u'ordered_items-0-quantity': [u'5'], u'ordered_items-2-quantity': [u'1'], u'ordered_items-3-product': [u'3'], u'ordered_items-5-quantity': [u''], u'ordered_items-3-quantity': [u'3'], u'ordered_items-1-order': [u'1'], u'ordered_items-4-product': [u'3'], u'ordered_items-0-product': [u'1'], u'ordered_items-2-product': [u'7'], u'ordered_items-5-product': [u''], u'ordered_items-1-quantity': [u'1'], u'ordered_items-INITIAL_FORMS': [u'5'], u'ordered_items-2-order': [u'1'], u'ordered_items-0-order': [u'1'], u'ordered_items-4-order': [u'1'], u'ordered_items-TOTAL_FORMS': [u'6'], u'ordered_items-4-quantity': [u'5'], u'customer': [u'Kermit the frog'], u'ordered_items-1-product': [u'3'], u'ordered_items-MAX_NUM_FORMS': [u''], u'ordered_items-5-order': [u'1'], u'ordered_items-3-order': [u'1']}>" What version of the product are you using? On what operating system? 1.2 Firefox GNU/Linux Please provide any additional information below. the template "inline-formset-autocomplete.html" is missing the following two lines which are in inline-formset.html. If you add them it doesn't crash:
thanks for all your work on django-dynamic-formset, it's really neat!
Original issue: http://code.google.com/p/django-dynamic-formset/issues/detail?id=21
The text was updated successfully, but these errors were encountered: