muammo va yordam sorash uchun api chiqarildi
This commit is contained in:
@@ -6,4 +6,5 @@ from .doctor import *
|
||||
from .plan import *
|
||||
from .tour_plan import *
|
||||
from .location import *
|
||||
from .factory import *
|
||||
from .factory import *
|
||||
from .support import *
|
||||
12
core/apps/shared/admin/support.py
Normal file
12
core/apps/shared/admin/support.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# django
|
||||
from django.contrib import admin
|
||||
|
||||
# shared
|
||||
from core.apps.shared.models import Support
|
||||
|
||||
|
||||
@admin.register(Support)
|
||||
class SupportAdmin(admin.ModelAdmin):
|
||||
list_display = ['id', 'problem', 'date', 'user']
|
||||
search_fields = ['problem', 'user__first_name', 'user__last_name']
|
||||
|
||||
Reference in New Issue
Block a user