Implement per site restriction for users

This commit is contained in:
Iacopo Spalletti 2016-05-11 17:22:12 +02:00
commit 01880591b7
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6
11 changed files with 326 additions and 6 deletions

View file

@ -2,6 +2,8 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os
from tempfile import mkdtemp
@ -20,7 +22,6 @@ HELPER_SETTINGS = dict(
'taggit',
'taggit_autosuggest',
'aldryn_apphooks_config',
'tests.test_utils',
'aldryn_search',
],
LANGUAGE_CODE='en',
@ -91,7 +92,7 @@ HELPER_SETTINGS = dict(
SITE_ID=1,
HAYSTACK_CONNECTIONS={
'default': {}
}
},
)
try:
@ -124,9 +125,9 @@ try:
'ROUTING': 'knocker.routing.channel_routing',
},
}
except ImportError:
pass
os.environ['AUTH_USER_MODEL'] = 'tests.test_utils.CustomUser'
def run():