From 32d2c74edab274c3a80cf3615abe0b80021b4430 Mon Sep 17 00:00:00 2001 From: Eduardo Alonso Date: Tue, 30 Jan 2024 12:30:27 +0100 Subject: [PATCH] net: Replace deprecated PickleSerializer Django 5.x has finally removed PickleSerializer (https://github.com/django/django/pull/15139). JSONSerializer is the default serializer now, and with Django 5.0 released Dec 4th, the code wouldn't work anymore for me. --- net/settings_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/settings_common.py b/net/settings_common.py index b3025b2db..eeba49743 100644 --- a/net/settings_common.py +++ b/net/settings_common.py @@ -89,7 +89,7 @@ VO_LOGFILE = LOG_DIR + 'vo.log' # http://stackoverflow.com/questions/20301338/django-openid-auth-typeerror-openid-yadis-manager-yadisservicemanager-object-is -SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer' +SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer' # must match fixtures/initial_data.json MACHINE_USERNAME = "an-machine"