middleware and respnse models updated
This commit is contained in:
@@ -125,7 +125,9 @@ class QueryModel(ArgumentModel):
|
||||
if not expired:
|
||||
args = cls.get_not_expired_query_arg(args)
|
||||
query = cls._query(db=db).filter(*args)
|
||||
return PostgresResponse(pre_query=cls._query(db=db), query=query, is_array=False)
|
||||
return PostgresResponse(
|
||||
pre_query=cls._query(db=db), query=query, is_array=False
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def filter_all_system(
|
||||
|
||||
@@ -26,7 +26,9 @@ class BasicMixin(Base, BaseAlchemyModel):
|
||||
__repr__ = ReprMixin.__repr__
|
||||
|
||||
|
||||
class CrudMixin(BasicMixin, CRUDModel, SerializeMixin, ReprMixin, SmartQueryMixin, QueryModel ):
|
||||
class CrudMixin(
|
||||
BasicMixin, CRUDModel, SerializeMixin, ReprMixin, SmartQueryMixin, QueryModel
|
||||
):
|
||||
"""
|
||||
Base mixin providing CRUD operations and common fields for PostgreSQL models.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user