mirror of https://github.com/logos-co/open-law.git
14 lines
276 B
Python
14 lines
276 B
Python
|
from app import db
|
||
|
|
||
|
|
||
|
class ModelMixin(object):
|
||
|
def save(self, commit=True):
|
||
|
# Save this model to the database.
|
||
|
db.session.add(self)
|
||
|
if commit:
|
||
|
db.session.commit()
|
||
|
return self
|
||
|
|
||
|
|
||
|
# Add your own utility classes and functions here.
|