From e28eb306139be0de04b9ba95a53714f1b38c0270 Mon Sep 17 00:00:00 2001 From: Job Doesburg Date: Wed, 10 Apr 2024 10:07:28 +0200 Subject: [PATCH] Fix --- website/users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/users/models.py b/website/users/models.py index e96e564d..84b796f8 100644 --- a/website/users/models.py +++ b/website/users/models.py @@ -90,7 +90,7 @@ def save(self, *args, **kwargs): if self.pk is None: try: - self.pk = self.objects.get(username=self.username).pk + self.pk = User.objects.get(username=self.username).pk except self.DoesNotExist: pass