only first application is stored in session
request.session[APPLICATIONS_SESSION_KEY].append(application.id.hex)
does not lead to django saving the session to the database, as the session is not modified, but the contained list.
Fixes:
-
request.session.modified = True
after modifying -
SESSION_SAVE_EVERY_REQUEST=True
in settings