Skip to content

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

Remove unused stock files from dashboard

Marcin Gębala2a663d9bd9bc
diff --git a/saleor/dashboard/stock/__init__.py b/saleor/dashboard/stock/__init__.py
deleted file mode 100644
index 8b13789179..0000000000
--- a/saleor/dashboard/stock/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/saleor/dashboard/stock/forms.py b/saleor/dashboard/stock/forms.py
deleted file mode 100644
index 1a4ceb8bb8..0000000000
--- a/saleor/dashboard/stock/forms.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from django.forms.models import inlineformset_factory
-from ...stock.models import StockRecord
-from ...product.models import Product
-
-
-BaseStockRecordFormSet = inlineformset_factory(Product, StockRecord, extra=1)
-
-
-class StockRecordFormSet(BaseStockRecordFormSet):
- def __init__(self, *args, **kwargs):
- super(StockRecordFormSet, self).__init__(*args, **kwargs)
- # Require at least one Stock record
- self.forms[0].empty_permitted = False