vendor firebase id qoshildi

This commit is contained in:
Husanjonazamov
2026-03-18 16:50:18 +05:00
parent e46632ac3b
commit ff7b37b0e8
9 changed files with 35 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
from .category import * # noqa
from .vendor import * # noqa
from .vendor_product import * # noqa
from .section import * # noqa

View File

@@ -10,3 +10,4 @@ class CategoryAdmin(ModelAdmin):
"id",
"__str__",
)

17
core/apps/vendors/admin/section.py vendored Normal file
View File

@@ -0,0 +1,17 @@
from django.contrib import admin
from unfold.admin import ModelAdmin
from core.apps.vendors.models import SectionModel
@admin.register(SectionModel)
class SectionAdmin(ModelAdmin):
list_display = (
"id",
"firestore_id",
"name",
"is_active",
"service_type",
)
search_fields = ("name", "firestore_id")
list_filter = ("is_active", "service_type")