1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 09:58:23 +02:00

Don't log when the permission to lock a note is checked

This commit is contained in:
Yohann D'ANELLO
2020-09-20 08:56:42 +02:00
parent d566def706
commit f63e2e088e
2 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class InstancedPermission:
Model.save(obj, force_insert=True)
ret = self.model.model_class().objects.filter(self.query & Q(pk=0)).exists()
# Delete testing object
obj._no_signal = True
obj._force_delete = True
Model.delete(obj)