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