sehmaschine/django-grappelli — Issue #70: Deleting unused tabular inline causes renumbering of elements
Author: kylemacfarlane
Created: 2012-01-06 06:48:30+00:00
State: open

Imagine the following tabular inlines:

contents-0-id
contents-1-id
contents-2-id
contents-3-id
contents-4-id (your extra empty row)

Now if you delete ``contents-4-id`` (maybe you gave up on trying to add a new row) then the remaining rows get renumbered to the following (it seems to always be +2):

contents-2-id
contents-3-id
contents-4-id
contents-5-id

When you then submit the form you'll get a ``MultiValueDictKeyError`` from Django (1.3.1) with the message ``Key 'contents-0-id' not found in