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', ])