Skip to content

Instantly share code, notes, and snippets.

View ja8zyjits's full-sized avatar

Jitesh Nair ja8zyjits

  • Turbolab
  • India
View GitHub Profile
@ja8zyjits
ja8zyjits / populate_obj_in_wtforms.py
Last active March 4, 2016 18:16
WTForms populate_obj advantage
##Complex Models:
class Profile(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(100))
reports = db.relationship(
'Report', backref='profile_of_report', lazy='dynamic')
class Report(db.Model):