diff options
Diffstat (limited to '')
-rw-r--r-- | app/views/consts.py | 2 | ||||
-rw-r--r-- | app/views/expenses.py | 2 | ||||
-rw-r--r-- | app/views/user.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/app/views/consts.py b/app/views/consts.py index 9ffd757..53616a4 100644 --- a/app/views/consts.py +++ b/app/views/consts.py @@ -52,7 +52,7 @@ class ConstForm(F.Form): def __init__(self, cur=None, obj=None): obj = cur if obj is None else obj - super(ConstForm, self).__init__(obj=obj) + super().__init__(obj=obj) self.category.query = Category.of(current_user).order_by(Category.name) # init prev_list diff --git a/app/views/expenses.py b/app/views/expenses.py index 2a5bd32..30a6830 100644 --- a/app/views/expenses.py +++ b/app/views/expenses.py @@ -33,7 +33,7 @@ class ExpenseForm(F.Form): get_label='name') def __init__(self, obj = None, description_req = True): - super(ExpenseForm, self).__init__(obj = obj) + super().__init__(obj = obj) self.category.query = Category.of(current_user).order_by(Category.name) if description_req: diff --git a/app/views/user.py b/app/views/user.py index cb97136..2a8730d 100644 --- a/app/views/user.py +++ b/app/views/user.py @@ -19,11 +19,11 @@ class LoginForm(F.Form): remember = F.BooleanField(u'Eingeloggt bleiben?') def __init__(self, *args, **kwargs): - super(LoginForm, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self.user = None def validate(self): - rv = super(LoginForm, self).validate() + rv = super().validate() if not rv: return False |