#897: Bi-Directional ManyToMany in Admin
---------------------------------------+-------------------------------
               Reporter:  anonymous    |          Owner:  nobody
                   Type:  New feature  |         Status:  new
              Milestone:               |      Component:  contrib.admin
                Version:               |       Severity:  Normal
             Resolution:               |       Keywords:
           Triage Stage:  Accepted     |      Has patch:  0
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
                  UI/UX:  0            |
---------------------------------------+-------------------------------

Comment (by anonymous):

 Check this out

 {{{
 class Test1(models.Model):
     tests2 = models.ManyToManyField('Test2', blank=True)

 class Test2(models.Model):
     tests1 = models.ManyToManyField(Test1, through=Test1.tests2.through,
 blank=True)
 }}}

 I guess this is the most native way

-- 
Ticket URL: <https://code.djangoproject.com/ticket/897#comment:28>
Django <https://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