We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django-style many-to-many relationships is a highly desirable feature. There might be some refactoring involved in reobject.manager.Manager.
reobject.manager.Manager
class Publication(models.Model): def __init__(self, title): self.title = title
class Article(Model): def __init__(self, headline): self.publications = models.ManyToManyField(Publication) self.headline = headline
ReObject 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")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Django-style many-to-many relationships is a highly desirable feature. There might be some refactoring involved in
reobject.manager.Manager
.ReObject 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")
The text was updated successfully, but these errors were encountered: