Report question

Question: How to avoid adding duplicates in a many-to-many relationship table in SQLAlchemy - python?