Skip to content

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

Add product bulk action choices class

Anna Siwik240ad852fd71
diff --git a/saleor/dashboard/product/__init__.py b/saleor/dashboard/product/__init__.py
index e69de29bb2..d4262839e1 100644
--- a/saleor/dashboard/product/__init__.py
+++ b/saleor/dashboard/product/__init__.py
@@ -0,0 +1,11 @@
+from django.utils.translation import pgettext_lazy
+
+
+class ProductBulkAction:
+ """Represents types of product bulk actions handled in dashboard."""
+ PUBLISH = 'Publish'
+ UNPUBLISH = 'Unpublish'
+
+ CHOICES = [
+ (PUBLISH, pgettext_lazy('product bulk action', 'Publish')),
+ (UNPUBLISH, pgettext_lazy('product bulk action', 'Unpublish'))]