#8813: BaseInlineFormSet unable to save existing objects
---------------------------------+------------------------------------------
          Reporter:  tobias      |         Owner:  nobody
            Status:  new         |     Milestone:        
         Component:  Forms       |       Version:  SVN   
        Resolution:              |      Keywords:        
             Stage:  Unreviewed  |     Has_patch:  0     
        Needs_docs:  0           |   Needs_tests:  0     
Needs_better_patch:  0           |  
---------------------------------+------------------------------------------
Comment (by gordyt):

 I just uploaded a self-contained ''models.py'' file at the request of
 Karen T. from [[http://groups.google.com/group/django-
 users/browse_thread/thread/e2ed78ae41011b75/ this thread]].  The comments
 at the top of the file show the error message.  It is possibly related to
 this ticket and, if so, is very easy to reproduce because you don't need
 to write any views, etc.

 Just drop this into an app and file up the admin interface.  Add a Book
 and (using the inline admin interface), add one or more Authors.  This
 should save with no errors.  Then, click on the Book entry in the admin
 interface.  This should display just fine and also show the associated
 Author(s).

 You can make a change or not, just click Save again and you should get an
 error message.

 You will notice that both the Book and the Author models are using a
 custom primary key - a UUIDField that came straight out of the django-
 extensions project.

 This error seems to occur only with using a custom primary key with an
 inline object.  So if Book and Author each have separate admin pages, no
 errors occur.

 Hope this helps!

 --gordy

 P.S. - At the top of the thread that I referenced I referred to a
 customized version of the UUIDField -- one that uses native uuid database
 types if the backend supports it.  To eliminate the possibility that my
 customized UUIDField was causing the problem, I replicated the issue using
 an unmodified version of the UUIDField and that is what is included in the
 models.py file.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8813#comment:7>
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