From c010c1015714b1e40dcd100121cb3491f064479f 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.