Skip to content

Commit

Permalink
Improve ordering enum name
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSuperiorStanislav committed Apr 2, 2024
1 parent f9cecc5 commit 0f630b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_rest_framework/sqlalchemy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_ordering_enum(
) -> type[enum.StrEnum]:
"""Prepare ordering enum."""
return saritasa_sqlalchemy_tools.OrderingEnum( # type: ignore
"OrderingEnum",
f"{self.__class__.__name__}OrderingEnum",
ordering_fields,
)

Expand Down

0 comments on commit 0f630b2

Please sign in to comment.