Beispiel #1
0
    def save(self):
        db_session.add(self)
        db_session.commit()

        return self
Beispiel #2
0
    def create(self):
        db_session.add(self)

        db_session.commit()

        return self