We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bc61a1 commit d6e9b23Copy full SHA for d6e9b23
aredis_om/model/model.py
@@ -523,8 +523,8 @@ def validate_sort_fields(self, sort_fields: List[str]):
523
field_proxy: ExpressionProxy = getattr(self.model, field_name)
524
525
if (
526
- not field_proxy.field.sortable is True
527
- and not field_proxy.field.index is True
+ field_proxy.field.sortable is not True
+ and field_proxy.field.index is not True
528
):
529
raise QueryNotSupportedError(
530
f"You tried sort by {field_name}, but {self.model} does "
0 commit comments