From 8c73c49dc743a7de0c3e1b3fb2ab1d123e6b2fe1 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Fri, 16 Dec 2022 16:30:02 +0100
Subject: [PATCH] Fix data check registration

---
 aleksis/core/data_checks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aleksis/core/data_checks.py b/aleksis/core/data_checks.py
index 47194ece7..caed821d6 100644
--- a/aleksis/core/data_checks.py
+++ b/aleksis/core/data_checks.py
@@ -202,7 +202,7 @@ class DataCheck:
 
         ct = ContentType.objects.get_for_model(instance)
         result, __ = DataCheckResult.objects.get_or_create(
-            check=cls.name, content_type=ct, object_id=instance.id
+            data_check=cls.name, content_type=ct, object_id=instance.id
         )
 
         # Track all existing problems (for deleting old results)
-- 
GitLab