the dict\'s key names are mapping to the sqlalchemy object attrs
ex:
class User(Base): __tablename__ = \'users\' id = Column(Integer, primar
I have another solution here. It would be handy to define model method as following.
class ModelName(db.Model): """ docstring here """ ... def update(self, **kwargs): for key, value in kwargs.items(): if hasattr(self, key): setattr(self, key, value)
I hope it would solve your problem.
Thank you