diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-01-30 13:08:34 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-19 14:45:56 +0100 |
commit | 042b8f956369c115536dfe7e33d9c0461dafe539 (patch) | |
tree | 90f8577c5e52047be00f5aeb2f31d010f0d65fb2 /archaeological_operations/tests.py | |
parent | bfae6a086ff5d35c794a5c5c0380bf2332661452 (diff) | |
download | Ishtar-042b8f956369c115536dfe7e33d9c0461dafe539.tar.bz2 Ishtar-042b8f956369c115536dfe7e33d9c0461dafe539.zip |
✨ admin: better management of Import - Item keys, import/export, links all user/imports
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 18e17cca5..26217d7c3 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -202,7 +202,7 @@ class ImportTest(BaseImportTest): def init_ope_targetkey(self, imp): # doing manually connections - q = Q(importer=imp) | Q(user=imp.user) + q = Q(ishtar_import=imp) | Q(user=imp.user) | Q(importer_type=imp.importer_type) if imp.associated_group: q |= Q(group=imp.associated_group) for ik in ItemKey.objects.filter(q).all(): @@ -565,7 +565,7 @@ class ImportOperationTest(ImportTest, TestCase): other_imp = form.save(self.ishtar_user) # re-associate with another import - q = Q(importer=impt) | Q(user=impt.user) + q = Q(ishtar_import=impt) | Q(user=impt.user) | Q(importer_type=impt.importer_type) if impt.associated_group: q |= Q(group=impt.associated_group) for ik in ItemKey.objects.filter(q).all(): |