Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '.source.python':
- 'model':
- 'prefix': 'sam'
- 'body': """
- class ${1:MODELNAME}(db.Model):
- __tablename__ = "${2:TABLENAME}"
- ${3:FIELDNAMES}
- def __init__(self):
- ${4:# TODO add initializer fields}
- def __repr__(self):
- return ${5}
- def __str__(self):
- return $5
- """
- 'description': 'Flask SQL Alchemy Model template'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement