File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/models-library/src/models_library Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,9 @@ def create_ordering_query_model_classes(
5050 will be automatically translated to their corresponding database
5151 column names for seamless integration with database queries.
5252 """
53- ordering_fields_api_to_column_map = ordering_fields_api_to_column_map or {}
53+ _ordering_fields_api_to_column_map = ordering_fields_api_to_column_map or {}
5454
55- assert set (ordering_fields_api_to_column_map .keys ()).issubset ( # nosec
55+ assert set (_ordering_fields_api_to_column_map .keys ()).issubset ( # nosec
5656 ordering_fields
5757 )
5858
@@ -62,7 +62,7 @@ def create_ordering_query_model_classes(
6262 msg_direction_options = "|" .join (sorted (OrderDirection ))
6363
6464 class _OrderBy (OrderBy ):
65- class Config ( OrderBy . Config ) :
65+ class Config :
6666 schema_extra : ClassVar [dict [str , Any ]] = {
6767 "example" : {
6868 "field" : next (iter (ordering_fields )),
@@ -85,7 +85,7 @@ def _check_ordering_field_and_map(cls, v):
8585 raise ValueError (msg )
8686
8787 # API field name -> DB column_name conversion
88- return ordering_fields_api_to_column_map .get (v ) or v
88+ return _ordering_fields_api_to_column_map .get (v ) or v
8989
9090 order_by_example : dict [str , Any ] = _OrderBy .Config .schema_extra ["example" ]
9191 order_by_example_json = json_dumps (order_by_example )
You can’t perform that action at this time.
0 commit comments