#8562: OneToOnes + primary_key = True ...  fails in Admin
--------------------------------------+-------------------------------------
          Reporter:  magneto          |         Owner:  nobody        
            Status:  new              |     Milestone:                
         Component:  Admin interface  |       Version:  SVN           
        Resolution:                   |      Keywords:  admin onetoone
             Stage:  Unreviewed       |     Has_patch:  0             
        Needs_docs:  0                |   Needs_tests:  0             
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Comment (by magneto):

 In regards to the MooOne object not begin saved on an Addition from the
 Inlined add of a BaseMoo.

 It seems that this is an edge case.  Where if i 'change' the BooleanFeild
 from its default "True" to "False" in the form, the MooOne object does get
 added.

 I.e. the If the Inlined object is NOT changed from the defaults, it will
 not be saved.

 I tried this with a second model

 {{{
 class MooOne(models.Model):
         basemoo = models.ForeignKey(BaseMoo, primary_key = True, unique =
 True)
         is_moo_one = models.BooleanField(default = True)
         txt = models.CharField(default = "",  blank = True, max_length =
 50)
 }}}

 and

 {{{
 class MooOne(models.Model):
         basemoo = models.OnetoOneField(BaseMoo, primary_key = True)
         is_moo_one = models.BooleanField(default = True)
         txt = models.CharField(default = "",  blank = True, max_length =
 50)
 }

 }}}

 with the same results if both {{{txt}}} and {{{is_moo_one}}} are left in
 their default state at Save.

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