vendor firebase id qoshildi
This commit is contained in:
1
core/apps/vendors/admin/__init__.py
vendored
1
core/apps/vendors/admin/__init__.py
vendored
@@ -1,3 +1,4 @@
|
||||
from .category import * # noqa
|
||||
from .vendor import * # noqa
|
||||
from .vendor_product import * # noqa
|
||||
from .section import * # noqa
|
||||
|
||||
1
core/apps/vendors/admin/category.py
vendored
1
core/apps/vendors/admin/category.py
vendored
@@ -10,3 +10,4 @@ class CategoryAdmin(ModelAdmin):
|
||||
"id",
|
||||
"__str__",
|
||||
)
|
||||
|
||||
|
||||
17
core/apps/vendors/admin/section.py
vendored
Normal file
17
core/apps/vendors/admin/section.py
vendored
Normal 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")
|
||||
Reference in New Issue
Block a user