From 556b688b61946b1b37b5f5ab7aa75a2e003355be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Schweigh=C3=B6fer?= Date: Mon, 23 Oct 2017 14:40:57 +0200 Subject: [PATCH] Possibly fix import error --- pyBuchaktion/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyBuchaktion/admin.py b/pyBuchaktion/admin.py index b167de1..5107650 100644 --- a/pyBuchaktion/admin.py +++ b/pyBuchaktion/admin.py @@ -475,7 +475,7 @@ def save(self, obj, data): literature_info.update(in_tucan=True) except Literature.DoesNotExist: literature_info = Literature.objects.create( - book=book, module=module, source=Literature.TUCAN, in_tucan=True + book=book, module=obj, source=Literature.TUCAN, in_tucan=True ) ids.append(literature_info.pk) obj.refresh_from_db(fields=['literature', ])