From 0a6b8708431eb45fcd426227fa7b54505d6eb668 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 21 Jun 2021 11:42:59 +0200 Subject: Context records: auto generate relation tree on insert and update --- archaeological_operations/tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 192d51214..09920cf13 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -1718,7 +1718,10 @@ class OperationInitTest(object): def tearDown(self): # cleanup for further test if hasattr(self, "user"): - self.user.delete() + try: + self.user.delete() + except: + pass self.user = None # all try/except is necessary for bad migrations on main... # should be removed at the next big version -- cgit v1.2.3