Changes between Version 7 and Version 9 of Ticket #30021
- Timestamp:
- Dec 7, 2018, 8:17:31 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30021 – Description
v7 v9 25 25 """ 26 26 from django.conf import settings 27 ++ mixed = getattr(settings, 'SITE_MIXED_MODE') 27 ++ has_mixed = getattr(settings, 'SITE_MIXED_MODE') 28 ++ has_site = getattr(settings, 'SITE_ID', '') 28 29 -- if getattr(settings, 'SITE_ID', ''): 29 ++ if getattr(settings, 'SITE_ID', '') and notmixed:30 ++ if has_site and not has_mixed: 30 31 site_id = settings.SITE_ID 31 32 return self._get_site_by_id(site_id) 32 33 elif request: 33 34 return self._get_site_by_request(request) 34 ++ elif getattr(settings, 'SITE_ID', '') and mixed== True:35 ++ elif has_site and has_mixed and settings.SITE_MIXED_MODE == True: 35 36 ++ site_id = settings.SITE_ID 36 37 ++ return self._get_site_by_id(site_id)