Advertisement
Guest User

Untitled

a guest
May 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. '.source.python':
  2. 'model':
  3. 'prefix': 'sam'
  4. 'body': """
  5. class ${1:MODELNAME}(db.Model):
  6. __tablename__ = "${2:TABLENAME}"
  7. ${3:FIELDNAMES}
  8.  
  9. def __init__(self):
  10. ${4:# TODO add initializer fields}
  11.  
  12. def __repr__(self):
  13. return ${5}
  14.  
  15. def __str__(self):
  16. return $5
  17. """
  18. 'description': 'Flask SQL Alchemy Model template'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement