Skip to content

Instantly share code, notes, and snippets.

@Porter97
Last active February 12, 2020 14:00
Show Gist options
  • Save Porter97/b693426899e39f7084bbe9fd52396eb9 to your computer and use it in GitHub Desktop.
Save Porter97/b693426899e39f7084bbe9fd52396eb9 to your computer and use it in GitHub Desktop.
#...
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