Skip to content

Commit

Permalink
Merge pull request #246 from jadmsaadaot/fix-SAWarning
Browse files Browse the repository at this point in the history
indicate the overlap for the  package.version relationship
  • Loading branch information
jadmsaadaot authored Jan 21, 2025
2 parents 2063184 + cfc02b1 commit 9a19c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion submit-api/src/submit_api/models/package_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PackageVersion(db.Model):
id = Column(db.Integer, primary_key=True, autoincrement=True)
original_package_id = Column(db.Integer, nullable=False)
version = Column(db.Integer, nullable=False)
package = db.relationship('Package', backref='versions', lazy='select', uselist=False)
package = db.relationship('Package', lazy='select', uselist=False, overlaps="version")

__table_args__ = (
db.Index('idx_package_versions_original_package_id', original_package_id),
Expand Down

0 comments on commit 9a19c3e

Please sign in to comment.