Move Django apps out of apps/ and mount them under auth/, common/, content/, and cms/ so endpoint paths map directly to the owning app. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
336 B
Python
12 lines
336 B
Python
from django.contrib import admin
|
|
|
|
from .models import Member
|
|
|
|
|
|
@admin.register(Member)
|
|
class MemberAdmin(admin.ModelAdmin):
|
|
list_display = ("id", "name", "phone", "organize", "is_vip", "is_disabled", "user")
|
|
list_filter = ("is_vip", "is_disabled")
|
|
search_fields = ("name", "phone", "organize")
|
|
raw_id_fields = ("user",)
|