Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix pep8
michal952297f4dc35
diff --git a/saleor/site/patch_sites.py b/saleor/site/patch_sites.pyindex 0c89f63bc8..75d13cc81c 100644--- a/saleor/site/patch_sites.py+++ b/saleor/site/patch_sites.py@@ -6,12 +6,12 @@ from django.http.request import split_domain_port'''-We are patching django.contrib.sites because it is cached on module level and-can be in some cases thread unsafe. Also django.contrib.sites can be used by+We are patching django.contrib.sites because it is cached on module level and+can be in some cases thread unsafe. Also django.contrib.sites can be used byother modules and we don't want to lose its functionality. Saleor has its ownSiteSetting, but having those settings in two places is not what we wanted.Instead we link django.contrib.sites and saleor Site.Settings with One To One-relationship.+relationship.In this patch we are also prefetching our settings for better performance.'''