#10967: save(force_update=True) crashes with model inheritance
---------------------------+------------------------------------------------
 Reporter:  lgs            |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 When there is a subclass with no fields and you try to save it with
 obj.save(force_update=True) it will crash with this exception:

 {{{
 AttributeError: 'NoneType' object has no attribute 'rowcount'
 }}}

 The problem is that an or condition should be an and instead. I'm talking
 about the check in Model.save_base that test if there are non primary
 fields to save. This is better explained by the patch itself.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10967>
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to