forked from Github-Mirrors/canaille
fix: Lazy permission loading exception
This commit is contained in:
parent
cbc2f60640
commit
8c16a9dd6d
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Fixed
|
||||
^^^^^
|
||||
|
||||
- Lazy permission loading exception.
|
||||
|
||||
[0.0.46] - 2024-04-08
|
||||
---------------------
|
||||
|
||||
|
|
|
@ -181,8 +181,10 @@ class BackendModel:
|
|||
for attribute, value in filter.items():
|
||||
attribute_type = self.get_attribute_type(attribute)
|
||||
|
||||
if not inspect.isclass(attribute_type) or not issubclass(
|
||||
attribute_type, Model
|
||||
if (
|
||||
isinstance(value, Model)
|
||||
or not inspect.isclass(attribute_type)
|
||||
or not issubclass(attribute_type, Model)
|
||||
):
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in a new issue