#12599: MultiValueDictKeyError with inline admin, when inline model's ID not
displayed
-------------------------------------------+--------------------------------
          Reporter:  handelaar             |         Owner:  nobody
            Status:  closed                |     Milestone:        
         Component:  django.contrib.admin  |       Version:  1.1   
        Resolution:  invalid               |      Keywords:        
             Stage:  Unreviewed            |     Has_patch:  0     
        Needs_docs:  0                     |   Needs_tests:  0     
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by kmtracey):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 If you don't what the primary key field to be displayed and editable then
 it needs to be made an `AutoField`, not an `IntegerField`.  Otherwise how
 else can it be assigned?  I think the problem here is you have models
 asking for the impossible: non-displayed, non-editable, and non-auto-
 assigned primary keys in the inlines.  I'm pretty sure simply making the
 primary key field an `AutoField` will fix the problem.  Do not manually
 exclude the field, the admin will correctly handle hiding the field from
 the user if it is defined properly.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12599#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to