diff --git a/input/views.py b/input/views.py index b71e301..04b5dc8 100755 --- a/input/views.py +++ b/input/views.py @@ -154,8 +154,7 @@ class BaseApplicationView(FormView): modell = form.save(commit=False) # Username from session if present - user = self.request.session.get('user') - if user: + if user := self.request.session.get('user'): modell.username = user.get('username') # Copy common fields if provided by the form