#897: Bi-Directional ManyToMany in Admin -------------------------------+------------------------------------ Reporter: anonymous | Owner: nobody Type: New feature | Status: new 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 CB): To update comment 28: This works great, but breaks south. So here's a fix for that: {{{ class ReverseManyToManyField(models.ManyToManyField): pass try: import south except ImportError: pass else: from south.modelsinspector import add_ignored_fields add_ignored_fields([".*\.ReverseManyToManyField$",]) class Test1(models.Model): tests2 = models.ManyToManyField('Test2', blank=True) class Test2(models.Model): tests1 = models.ReverseManyToManyField(Test1, through=Test1.tests2.through, blank=True) }}} A possible Django enchancement would be adding this field (or rather, the results of it's contribute_to_class, I think) instead of the ReverseManyRelatedObjectsDescriptor -- Ticket URL: <https://code.djangoproject.com/ticket/897#comment:29> 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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.