From 1b16a518b8ef7f6c5db922b812bae6ddddc28c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20J=C3=BClg?= <tobias.juelg@tum.de> Date: Wed, 25 May 2022 11:50:19 +0200 Subject: [PATCH] Version bump and pylint fix --- vote/models.py | 5 ++--- wahlfang/__init__.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/vote/models.py b/vote/models.py index 1481aa8..c927c93 100644 --- a/vote/models.py +++ b/vote/models.py @@ -198,10 +198,9 @@ class Voter(models.Model): def __str__(self): if self.email: return self.email - elif self.name: + if 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, update_fields=None): diff --git a/wahlfang/__init__.py b/wahlfang/__init__.py index 9613b39..da2182f 100644 --- a/wahlfang/__init__.py +++ b/wahlfang/__init__.py @@ -1 +1 @@ -__version__ = '1.0.5.1' +__version__ = '1.0.6' -- GitLab