#18621: Two ManyToMany fields without backwards relation
-------------------------------------+-------------------------------------
     Reporter:  anonymous            |                    Owner:  anonymous
         Type:                       |                   Status:  assigned
  Cleanup/optimization               |                  Version:  1.4
    Component:  Documentation        |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:  backwards relation   |      Needs documentation:  0
  model                              |  Patch needs improvement:  0
    Has patch:  0                    |                    UI/UX:  0
  Needs tests:  0                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by aaugustin):

 * component:  Database layer (models, ORM) => Documentation
 * type:  Bug => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Comment:

 Set `related_name='foo+'` on one field and `related_name='bar+'` on the
 other. It will work.

 The documentation could explain that.

 ----

 That said, Frank's comment isn't wrong:
 > I would ask why you're bothered by having the backwards relation, just
 don't use it if you don't want it.
 [[BR]]

 To be honest, I'm not sure why this feature exists!

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