language models and set defaults are updated
This commit is contained in:
@@ -313,6 +313,7 @@ class Event2Employee(CrudCollection):
|
||||
# return [event.endpoint_name for event in endpoint_restrictions]
|
||||
#
|
||||
|
||||
|
||||
class Event2Occupant(CrudCollection):
|
||||
"""
|
||||
Occupant2Event class based on declarative_base and BaseMixin via session
|
||||
|
||||
@@ -148,7 +148,9 @@ class Users(CrudCollection, UserLoginModule, SelectAction):
|
||||
@classmethod
|
||||
def credentials(cls):
|
||||
db_session = cls.new_session()
|
||||
person_object: People = People.filter_by_one(db=db_session, system=True, id=cls.person_id).data
|
||||
person_object: People = People.filter_by_one(
|
||||
db=db_session, system=True, id=cls.person_id
|
||||
).data
|
||||
if person_object:
|
||||
return {
|
||||
"person_id": person_object.id,
|
||||
|
||||
Reference in New Issue
Block a user