-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Django-style many-to-many relationships is a highly desirable feature. There might be some refactoring involved in reobject.manager.Manager.
class Publication(models.Model):
def __init__(self, title):
self.title = titleclass Article(Model):
def __init__(self, headline):
self.publications = models.ManyToManyField(Publication)
self.headline = headlineReObject should allow the following usages:
a.publications.all()p.article_set.all()a.publications.create(..)a.publications.add(p)Article.objects.filter(publications__title__startswith="Science")Publication.objects.filter(article__headline__startswith="NASA")