Skip to content

Commit f40a72e

Browse files
committed
Accept creation of new Contributor without name
1 parent af6ffc9 commit f40a72e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

democracylab/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class Contributor(User):
2626
qiqo_signup_time = models.DateTimeField(null=True, blank=True)
2727

2828
def save(self, *args, **kwargs):
29-
if self.first_name and self.last_name:
29+
existing_user = Contributor.objects.filter(email=self.email).exists()
30+
if not existing_user or (self.first_name and self.last_name):
3031
super(Contributor, self).save(*args, **kwargs)
3132

3233
def __str__(self):

0 commit comments

Comments
 (0)