1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-29 12:50:55 +02:00

Update permissions to see buses

This commit is contained in:
Yohann D'ANELLO
2020-07-28 20:22:10 +02:00
parent 12ebf9d12a
commit 7c6bab88f4
3 changed files with 10 additions and 4 deletions

View File

@ -76,7 +76,7 @@ class PermissionQueryTestCase(TestCase):
model = perm.model.model_class()
model.objects.filter(query).all()
# print("Good query for permission", perm)
except (FieldError, AttributeError, ValueError):
except (FieldError, AttributeError, ValueError, TypeError):
print("Query error for permission", perm)
print("Query:", perm.query)
if instanced.query: