categorylanri import qilish qoshildi

This commit is contained in:
Husanjonazamov
2026-03-25 19:24:42 +05:00
commit 1c4155299d
206 changed files with 8106 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
from .category import * # noqa
from .products import * # noqa

View File

@@ -0,0 +1,17 @@
from django import forms
from core.apps.api.models import CategoryModel, SubcategoryModel
class CategoryForm(forms.ModelForm):
class Meta:
model = CategoryModel
fields = "__all__"
class SubcategoryForm(forms.ModelForm):
class Meta:
model = SubcategoryModel
fields = "__all__"

View File

@@ -0,0 +1,10 @@
from django import forms
from core.apps.api.models import ProductsModel
class ProductsForm(forms.ModelForm):
class Meta:
model = ProductsModel
fields = "__all__"