Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update get_statics_absolute_url after rebase

michal399da9d431b1
diff --git a/saleor/dashboard/order/utils.py b/saleor/dashboard/order/utils.py
index 907e350bb4..e313aa1a1d 100644
--- a/saleor/dashboard/order/utils.py
+++ b/saleor/dashboard/order/utils.py
@@ -10,10 +10,10 @@ PACKING_SLIP_TEMPLATE = 'dashboard/order/pdf/packing_slip.html'
def get_statics_absolute_url(request):
- site = get_site_settings_from_request(request)
+ site_settings = get_site_settings_from_request(request)
absolute_url = '%(protocol)s://%(domain)s%(static_url)s' % {
'protocol': 'https' if request.is_secure() else 'http',
- 'domain': site.domain,
+ 'domain': site_settings.site.domain,
'static_url': STATIC_URL,
}
return absolute_url