From 25112f20ea54b9adf3a04fdbba1596fb0c7563cb Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 3 Feb 2021 10:47:35 +0100 Subject: [PATCH] fixed admin_login in test --- orchestra/utils/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchestra/utils/tests.py b/orchestra/utils/tests.py index 98b75ff5..7cc9485d 100644 --- a/orchestra/utils/tests.py +++ b/orchestra/utils/tests.py @@ -95,7 +95,7 @@ class BaseLiveServerTestCase(AppDependencyMixin, LiveServerTestCase): def admin_login(self): session = SessionStore() - session[SESSION_KEY] = self.account_id + session[SESSION_KEY] = self.account.id session[BACKEND_SESSION_KEY] = settings.AUTHENTICATION_BACKENDS[0] session.save() ## to set a cookie we need to first visit the domain.