Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
list_editable raising a MultiValueDictKeyError
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nick  
View profile  
 More options Feb 7, 3:10 pm
From: Nick <nickt...@gmail.com>
Date: Tue, 7 Feb 2012 12:10:34 -0800 (PST)
Local: Tues, Feb 7 2012 3:10 pm
Subject: list_editable raising a MultiValueDictKeyError
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luigi Panzeri  
View profile  
 More options Feb 11, 10:49 am
From: Luigi Panzeri <defma...@gmail.com>
Date: Sat, 11 Feb 2012 07:49:42 -0800 (PST)
Local: Sat, Feb 11 2012 10:49 am
Subject: 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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »