fixed admin_login in test
This commit is contained in:
parent
acac7727c2
commit
c010c10157
|
@ -95,7 +95,7 @@ class BaseLiveServerTestCase(AppDependencyMixin, LiveServerTestCase):
|
||||||
|
|
||||||
def admin_login(self):
|
def admin_login(self):
|
||||||
session = SessionStore()
|
session = SessionStore()
|
||||||
session[SESSION_KEY] = self.account_id
|
session[SESSION_KEY] = self.account.id
|
||||||
session[BACKEND_SESSION_KEY] = settings.AUTHENTICATION_BACKENDS[0]
|
session[BACKEND_SESSION_KEY] = settings.AUTHENTICATION_BACKENDS[0]
|
||||||
session.save()
|
session.save()
|
||||||
## to set a cookie we need to first visit the domain.
|
## to set a cookie we need to first visit the domain.
|
||||||
|
|
Loading…
Reference in New Issue