Skip to content

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

Exclude 'order' from ProductImageForm

Marcin Gębala105b26b769f2
diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.py
index 634e0e54fd..371f8a739f 100644
--- a/saleor/dashboard/product/forms.py
+++ b/saleor/dashboard/product/forms.py
@@ -1,6 +1,7 @@
from __future__ import unicode_literals
from django import forms
+from django.forms.formsets import formset_factory
from django.forms.models import inlineformset_factory
from django.forms.widgets import ClearableFileInput
@@ -80,4 +81,4 @@ def get_variant_formset(product):
class ProductImageForm(forms.ModelForm):
class Meta:
model = ProductImage
- exclude = ('product',)
\ No newline at end of file
+ exclude = ('product', 'order')