Skip to content

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

* fix doc-string build_absolute_uri

Николай Инкогнито177e7dbdf26f
diff --git a/saleor/core/utils/__init__.py b/saleor/core/utils/__init__.py
index 14e202a259..06db6cb62a 100644
--- a/saleor/core/utils/__init__.py
+++ b/saleor/core/utils/__init__.py
@@ -42,7 +42,7 @@ class CategoryChoiceField(forms.ModelChoiceField):
def build_absolute_uri(location):
- # type: (str, bool, saleor.site.models.SiteSettings) -> str
+ # type: (str) -> str
host = Site.objects.get_current().domain
protocol = 'https' if settings.ENABLE_SSL else 'http'
current_uri = '%s://%s' % (protocol, host)