from django import forms
from django.utils.translation import gettext_lazy as _

from .models import ProductFigure, ProductCategory, Product, ProductImage

"""Product create/edit"""
class ProductForm(forms.ModelForm):
    class Meta:
        model = Product
        exclude = ('owner',)


"""Product Image create/edit"""
class ProductImageForm(forms.ModelForm):
    class Meta:
        model = ProductImage
        fields = '__all__'
        widgets = {
            'product': forms.HiddenInput,
        }


"""Product Category create/edit"""
class ProductCategoryForm(forms.ModelForm):
    class Meta:
        model = ProductCategory
        exclude = ('owner',)


"""Product Figure create/edit"""
class ProductFigureForm(forms.ModelForm):
    class Meta:
        model = ProductFigure
        exclude = ('owner',)

c06b3ea7be4fb8289d24522f0146d641a211ea71
<mask token>


class ProductCategoryForm(forms.ModelForm):


    class Meta:
        model = ProductCategory
        exclude = 'owner',


<mask token>


class ProductFigureForm(forms.ModelForm):


    class Meta:
        model = ProductFigure
        exclude = 'owner',

<mask token>


class ProductImageForm(forms.ModelForm):


    class Meta:
        model = ProductImage
        fields = '__all__'
        widgets = {'product': forms.HiddenInput}


<mask token>


class ProductCategoryForm(forms.ModelForm):


    class Meta:
        model = ProductCategory
        exclude = 'owner',


<mask token>


class ProductFigureForm(forms.ModelForm):


    class Meta:
        model = ProductFigure
        exclude = 'owner',

<mask token>


class ProductForm(forms.ModelForm):


    class Meta:
        model = Product
        exclude = 'owner',


<mask token>


class ProductImageForm(forms.ModelForm):


    class Meta:
        model = ProductImage
        fields = '__all__'
        widgets = {'product': forms.HiddenInput}


<mask token>


class ProductCategoryForm(forms.ModelForm):


    class Meta:
        model = ProductCategory
        exclude = 'owner',


<mask token>


class ProductFigureForm(forms.ModelForm):


    class Meta:
        model = ProductFigure
        exclude = 'owner',

from django import forms
from django.utils.translation import gettext_lazy as _
from .models import ProductFigure, ProductCategory, Product, ProductImage
<mask token>


class ProductForm(forms.ModelForm):


    class Meta:
        model = Product
        exclude = 'owner',


<mask token>


class ProductImageForm(forms.ModelForm):


    class Meta:
        model = ProductImage
        fields = '__all__'
        widgets = {'product': forms.HiddenInput}


<mask token>


class ProductCategoryForm(forms.ModelForm):


    class Meta:
        model = ProductCategory
        exclude = 'owner',


<mask token>


class ProductFigureForm(forms.ModelForm):


    class Meta:
        model = ProductFigure
        exclude = 'owner',

from django import forms
from django.utils.translation import gettext_lazy as _

from .models import ProductFigure, ProductCategory, Product, ProductImage

"""Product create/edit"""
class ProductForm(forms.ModelForm):
    class Meta:
        model = Product
        exclude = ('owner',)


"""Product Image create/edit"""
class ProductImageForm(forms.ModelForm):
    class Meta:
        model = ProductImage
        fields = '__all__'
        widgets = {
            'product': forms.HiddenInput,
        }


"""Product Category create/edit"""
class ProductCategoryForm(forms.ModelForm):
    class Meta:
        model = ProductCategory
        exclude = ('owner',)


"""Product Figure create/edit"""
class ProductFigureForm(forms.ModelForm):
    class Meta:
        model = ProductFigure
        exclude = ('owner',)
