You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ormar.exceptions.ModelDefinitionError: Relation with related_name 'author' leading to model BookAuthor cannot be used on model Book because it's already used by model Author
Expected behavior
The ManyToMany field should be created and usable.
Versions (please complete the following information):
Database: SQLite
Python version: 3.11
ormar version: 0.20.1
pydantic version: 2.5.3
if applicable fastapi version
The text was updated successfully, but these errors were encountered:
Describe the bug
Declaring a ManyToMany error always raises a ModelDefinitionError
To Reproduce
running this should produce this error
Expected behavior
The ManyToMany field should be created and usable.
Versions (please complete the following information):
ormar
version: 0.20.1pydantic
version: 2.5.3fastapi
versionThe text was updated successfully, but these errors were encountered: