-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
django_settings.SITE_ID
instead of Site.objects.get_current()
.
- Loading branch information
1 parent
2c5b5f9
commit 6570e00
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
from django.conf import settings as django_settings | ||
from django.contrib.sites.models import Site | ||
|
||
|
||
if (django_settings.LOGIN_ENABLED): | ||
site = Site.objects.get_current() | ||
if (site.id == django_settings.SPEEDY_NET_SITE_ID): | ||
if (django_settings.SITE_ID == django_settings.SPEEDY_NET_SITE_ID): | ||
from speedy.net.accounts.test.user_factories import DefaultUserFactory, InactiveUserFactory, ActiveUserFactory | ||
if (site.id == django_settings.SPEEDY_MATCH_SITE_ID): | ||
if (django_settings.SITE_ID == django_settings.SPEEDY_MATCH_SITE_ID): | ||
from speedy.match.accounts.test.user_factories import DefaultUserFactory, InactiveUserFactory, ActiveUserFactory | ||
|
||
|