events are updated

This commit is contained in:
2024-11-08 18:23:28 +03:00
parent c5b771e5cb
commit df5927e5ac
37 changed files with 223 additions and 149 deletions

View File

@@ -198,7 +198,7 @@ class CrudMixin(Base, SmartQueryMixin, SessionMixin, FilterAttributes):
for record in self.__class__.__dict__
if "_" not in record[0] and "id" not in record[-2:]
]
include_joins = include_joins or []
for all_argument in all_arguments:
column = getattr(self.__class__, all_argument)
is_populate = isinstance(column, InstrumentedAttribute) and not hasattr(

View File

@@ -20,7 +20,7 @@ class FilterAttributes:
pre_query = None # The query to use before the filtering such as: query = cls.query.filter_by(active=True)
filter_attr = None # The filter attributes to use in the model.
FilterModel: ListOptions = ListOptions
FilterModel = ListOptions
def flush(self):
"""Flush the current session."""