from django import forms
from . models import Category

class CategoryForm(forms.ModelForm):

    class Meta:
        model = Category
        fields = fields = ("name", "description", "category_pic")

from django import forms
from . models import Category

class CategoryForm(forms.ModelForm):

    class Meta:
        model = Category
        fields = fields = ("name", "description", "category_pic")
