Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit d577550

Browse files
committed
bug fix
1 parent ea7a5a1 commit d577550

File tree

1 file changed

+1
-1
lines changed
  • flask_rest_jsonapi/data_layers/filtering

1 file changed

+1
-1
lines changed

flask_rest_jsonapi/data_layers/filtering/alchemy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def value(self):
119119
"""
120120
if self.filter_.get('field') is not None:
121121
try:
122-
return getattr(self.model, self.field)
122+
return getattr(self.model, self.filter_['field'])
123123
except AttributeError:
124124
raise InvalidFilters("{} has no attribute {}".format(self.model.__name__, self.field))
125125
else:

0 commit comments

Comments
 (0)