Skip to content

Commit af6ffc9

Browse files
committed
Only take Contributor changes if first and last names are included
1 parent 8bf56bf commit af6ffc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

democracylab/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ class Contributor(User):
2525
qiqo_uuid = models.CharField(max_length=50, blank=True)
2626
qiqo_signup_time = models.DateTimeField(null=True, blank=True)
2727

28+
def save(self, *args, **kwargs):
29+
if self.first_name and self.last_name:
30+
super(Contributor, self).save(*args, **kwargs)
31+
2832
def __str__(self):
2933
return self.id_full_name()
3034

0 commit comments

Comments
 (0)