diff --git a/oscarapi/fixtures/offer.xml b/oscarapi/fixtures/offer.xml index c69eeed3..4c455240 100644 --- a/oscarapi/fixtures/offer.xml +++ b/oscarapi/fixtures/offer.xml @@ -27,6 +27,7 @@ 0 0 + False 2015-11-16T11:08:15.653721+00:00 diff --git a/oscarapi/fixtures/voucher.xml b/oscarapi/fixtures/voucher.xml index 34919a29..537f213d 100644 --- a/oscarapi/fixtures/voucher.xml +++ b/oscarapi/fixtures/voucher.xml @@ -19,6 +19,7 @@ 0 0 + False 2015-11-27T15:38:48.134807+00:00 diff --git a/oscarapi/settings.py b/oscarapi/settings.py index 542e11ba..67408e2a 100644 --- a/oscarapi/settings.py +++ b/oscarapi/settings.py @@ -5,6 +5,7 @@ `OSCARAPI_`. So :const:`oscarapi.settings.EXPOSE_USER_DETAILS` becomes: `OSCARAPI_EXPOSE_USER_DETAILS` """ + from django.contrib.auth import get_user_model from oscarapi.utils.settings import overridable from oscarapi import version diff --git a/sandbox/settings/sandbox.py b/sandbox/settings/sandbox.py index 749540ac..b3fde016 100644 --- a/sandbox/settings/sandbox.py +++ b/sandbox/settings/sandbox.py @@ -160,7 +160,6 @@ 'django.middleware.common.CommonMiddleware', 'oscarapi.middleware.HeaderSessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', - "django.contrib.sessions.middleware.SessionMiddleware", 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',