Last active
February 12, 2020 14:00
-
-
Save Porter97/b693426899e39f7084bbe9fd52396eb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#... | |
class User(db.Model, UserMixin): | |
#... | |
collections = db.relationship('Collection', backref='author', lazy='dynamic', cascade='all, delete-orphan') | |
#... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment