mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Migrate to fsqla_v3
This commit is contained in:
parent
28e80c27fa
commit
c0b0e18332
1 changed files with 2 additions and 3 deletions
|
@ -10,8 +10,7 @@ from decimal import ROUND_HALF_UP, Decimal
|
||||||
|
|
||||||
from flask import flash
|
from flask import flash
|
||||||
from flask_login import current_user
|
from flask_login import current_user
|
||||||
from flask_security.models import fsqla_v2 as fsqla
|
from flask_security.models.fsqla_v3 import FsModels, FsRoleMixin, FsUserMixin
|
||||||
from flask_security.models.fsqla_v2 import FsRoleMixin, FsUserMixin
|
|
||||||
from flask_sqlalchemy import SQLAlchemy
|
from flask_sqlalchemy import SQLAlchemy
|
||||||
from sqlalchemy import func, select
|
from sqlalchemy import func, select
|
||||||
|
|
||||||
|
@ -30,7 +29,7 @@ MIN_PART_NUMBER = 1
|
||||||
db = SQLAlchemy()
|
db = SQLAlchemy()
|
||||||
|
|
||||||
# For Flask-Security-Too
|
# For Flask-Security-Too
|
||||||
fsqla.FsModels.set_db_info(db)
|
FsModels.set_db_info(db)
|
||||||
|
|
||||||
|
|
||||||
def get_count(table):
|
def get_count(table):
|
||||||
|
|
Loading…
Reference in a new issue