fix: Lazy permission loading exception

This commit is contained in:
Éloi Rivard 2024-04-08 10:50:37 +02:00
parent cbc2f60640
commit 8c16a9dd6d
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Fixed
^^^^^
- Lazy permission loading exception.
[0.0.46] - 2024-04-08
---------------------

View file

@ -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