Skip to content
Snippets Groups Projects
Commit 1b16a518 authored by Tobias Jülg's avatar Tobias Jülg
Browse files

Version bump and pylint fix

parent ad32bbd9
No related branches found
No related tags found
1 merge request!48Adds QR Code Invitation for in Person Elections
Pipeline #1561 passed with warnings
...@@ -198,10 +198,9 @@ class Voter(models.Model): ...@@ -198,10 +198,9 @@ class Voter(models.Model):
def __str__(self): def __str__(self):
if self.email: if self.email:
return self.email return self.email
elif self.name: if self.name:
return self.name return self.name
else: return f'anonymous-{self.pk}'
return f'anonymous-{self.pk}'
def save(self, force_insert=False, force_update=False, using=None, def save(self, force_insert=False, force_update=False, using=None,
update_fields=None): update_fields=None):
......
__version__ = '1.0.5.1' __version__ = '1.0.6'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment