Skip to content

Commit

Permalink
Add property max_level_profil to default exclude columns
Browse files Browse the repository at this point in the history
-> it make raise a raiseload error on some module
  • Loading branch information
TheoLechemia committed Oct 30, 2023
1 parent d024adb commit 29dcb8b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/pypnusershub/db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ class User(db.Model, UserMixin):
active = db.Column(db.Boolean)
groups = db.relationship(
"User",
lazy="joined",
secondary=cor_roles,
primaryjoin="User.id_role == utilisateurs.cor_roles.c.id_role_utilisateur",
secondaryjoin="User.id_role == utilisateurs.cor_roles.c.id_role_groupe",
Expand Down
2 changes: 1 addition & 1 deletion src/pypnusershub/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Meta:
include_fk = True
load_instance = True
sqla_session = db.session
exclude = ("_password", "_password_plus", "champs_addi")
exclude = ("_password", "_password_plus", "champs_addi", "max_level_profil")

max_level_profil = fields.Integer()
nom_complet = fields.String()
Expand Down
2 changes: 0 additions & 2 deletions src/pypnusershub/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

from pypnusershub.utils import get_cookie_path, set_cookie, delete_cookie

from .utils import set_logged_user_cookie


class TestUtils:
@pytest.mark.parametrize(
Expand Down

0 comments on commit 29dcb8b

Please sign in to comment.