#1383: ManyToManyField to a class with a OneToOneField fails
-----------------------------------------+----------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  adrian         
     Status:  closed                     |            Component:  Admin 
interface
    Version:  0.91                       |           Resolution:  worksforme    
 
   Keywords:  OneToOneField              |                Stage:  Unreviewed    
 
  Has_patch:  0                          |           Needs_docs:  0             
 
Needs_tests:  0                          |   Needs_better_patch:  0             
 
-----------------------------------------+----------------------------------
Changes (by Gary Wilson <[EMAIL PROTECTED]>):

  * status:  new => closed
  * resolution:  => worksforme
  * summary:  MultiToMultiField to a class with a OneToOneField fails =>
              ManyToManyField to a class with a OneToOneField
              fails

Comment:

 I used the models below, and I could not reproduce this problem.  Please
 post back here if you still experience the error.
 
 {{{
 #!python
 class A(models.Model):
     name = models.CharField(maxlength=60)
 
     class Admin: pass
 
     def __str__(self): return self.name
 
 class B(models.Model):
     a = models.OneToOneField(A)
 
     class Admin: pass
 
     def __str__(self): return self.a.name
 
 class C(models.Model):
     b = models.ManyToManyField(B)
 
     class Admin: pass
 }}}

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