from django.forms import ModelForm

from apps.products.models import Product, ProductImage


class ProductForm(ModelForm):
    class Meta:
        model = Product
        fields = [
            'category',
            'image',
            'title',
            'description',
            'price'
        ]


class ProductImageForm(ModelForm):
    class Meta:
        model = ProductImage
        fields = ['image']

from django.forms import ModelForm

from apps.products.models import Product, ProductImage


class ProductForm(ModelForm):
    class Meta:
        model = Product
        fields = [
            'category',
            'image',
            'title',
            'description',
            'price'
        ]


class ProductImageForm(ModelForm):
    class Meta:
        model = ProductImage
        fields = ['image']
