Skip to content

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

Improve docs

Anna Siwikf9306101fc2d
diff --git a/saleor/dashboard/forms.py b/saleor/dashboard/forms.py
index 2d8ce93ead..1b58a8ae70 100644
--- a/saleor/dashboard/forms.py
+++ b/saleor/dashboard/forms.py
@@ -54,7 +54,9 @@ class AjaxSelect2ChoiceField(forms.ChoiceField):
class AjaxSelect2CombinedChoiceField(AjaxSelect2ChoiceField):
"""An AJAX-based choice field using Select2 for multiple querysets.
- <obj.pk>_<obj.__class__.__name__> represents value passed to a field.
+ Value passed to a field is of format '<obj.id>_<obj.__class__.__name__>',
+ e. g. '17_Collection' for Collection object with id 17.
+
fetch_data_url - specifies url, from which select2 will fetch data
initial - initial object
"""
diff --git a/saleor/dashboard/menu/forms.py b/saleor/dashboard/menu/forms.py
index 0ad2e7a1f0..2b8bf67d33 100644
--- a/saleor/dashboard/menu/forms.py
+++ b/saleor/dashboard/menu/forms.py
@@ -24,8 +24,10 @@ class MenuItemForm(forms.ModelForm):
An item can point to a URL passed directly or to an object belonging
to one of querysets passed to a linked_object field.
- linked_object requires <obj.pk>_<obj.__class__.__name__> format as passed
- value.
+
+ linked_object value passed to a field requires format
+ '<obj.id>_<obj.__class__.__name__>', e. g. '17_Collection' for Collection
+ object with id 17.
"""
linked_object = AjaxSelect2CombinedChoiceField(