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