We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6ffc9 commit f40a72eCopy full SHA for f40a72e
democracylab/models.py
@@ -26,7 +26,8 @@ class Contributor(User):
26
qiqo_signup_time = models.DateTimeField(null=True, blank=True)
27
28
def save(self, *args, **kwargs):
29
- if self.first_name and self.last_name:
+ existing_user = Contributor.objects.filter(email=self.email).exists()
30
+ if not existing_user or (self.first_name and self.last_name):
31
super(Contributor, self).save(*args, **kwargs)
32
33
def __str__(self):
0 commit comments