Re: list_editable raising a MultiValueDictKeyError
I added the missing form inputs as follows:
if ($('.editable').length > 0) {
$('.action-select').each(function(i, el) {
var item_id = $(el).val();
$('form').append("<input type='hidden' name='form-" + i + "-id'
value='" + item_id + "'/>");
});
}
It seems a bug
On Feb 7, 9:10 pm, Nick <nickt...@gmail.com> wrote:
> Whenever I use list_editable inside of the django admin attempting to
> save the data results in
>
> Exception Type: MultiValueDictKeyError
> Exception Value: "Key 'form-0-id' not found in <QueryDict: {u'form-66-
> newID': [u''], etc. etc. >
>
> Whenever I create custom forms I simply add in the form-0 inputs as a
> hidden field. How do I work around this in the admin?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home