Skip to content

Commit

Permalink
add comment for further update
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Jan 9, 2024
1 parent 435625c commit 7922ee0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/geonature/core/gn_permissions/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,11 @@ class GroupPermAdmin(RolePermAdmin):
column_details_list = ("nom_role", "permissions_count", "permissions")

def get_query(self):
# TODO : change to sqla2.0 query when flask admin update to sqla2
return db.session.query(User).filter_by(groupe=True).where(User.filter_by_app())

def get_count_query(self):
# TODO : change to sqla2.0 query when flask admin update to sqla2
return (
db.session.query(sa.func.count("*"))
.select_from(User)
Expand Down Expand Up @@ -547,9 +549,11 @@ class UserPermAdmin(RolePermAdmin):
)

def get_query(self):
# TODO : change to sqla2.0 query when flask admin update to sqla2
return db.session.query(User).filter_by(groupe=False).where(User.filter_by_app())

def get_count_query(self):
# TODO : change to sqla2.0 query when flask admin update to sqla2
return (
db.session.query(sa.func.count("*"))
.select_from(User)
Expand Down

0 comments on commit 7922ee0

Please sign in to comment.