From a8578dcee5b4cad64ec6e10b1dc5cbfad815b4c8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 29 Jun 2020 15:37:18 +0200 Subject: Container - bulk update: remove parent when changing warehouse (refs #4959) --- archaeological_finds/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_finds/tests.py') diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index 80202f442..9387840a0 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -1930,7 +1930,7 @@ class TreatmentTest(FindInit, TestCase): self.create_finds(data_base={"label": u"Find 1"}, force=True) self.create_finds(data_base={"label": u"Find 2"}, force=True) image = Document.objects.create(title="Image!") - image.image.save('ishtar-bg.jpg', File(open(img))) + image.image.save('ishtar-bg.jpg', File(open(img, "rb"))) self.finds[0].documents.add(image) self.finds[0].save() -- cgit v1.2.3