diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2016-07-05 08:33:29 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2016-07-05 08:33:29 +0200 |
commit | e263a11eeb08443ebfd7bf3fa70f4ceb543b44b0 (patch) | |
tree | 84797a274ffa808b73998e18d403157ff0666708 /app/views | |
parent | 23a8a11f0d21cc1b7fb27752c20980b942fa5200 (diff) | |
download | kosten-e263a11eeb08443ebfd7bf3fa70f4ceb543b44b0.tar.gz kosten-e263a11eeb08443ebfd7bf3fa70f4ceb543b44b0.tar.bz2 kosten-e263a11eeb08443ebfd7bf3fa70f4ceb543b44b0.zip |
First batch of py3 changes
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 |