sms
All checks were successful
Deploy to Server / deploy (push) Successful in 3s

This commit is contained in:
jeremygan2021
2026-02-16 19:59:45 +08:00
parent 481a1d24f0
commit 91d82b78b5
46 changed files with 247 additions and 5482 deletions

View File

@@ -6,7 +6,7 @@ from django.urls import path, reverse
from django.shortcuts import redirect
from unfold.admin import ModelAdmin, TabularInline
from unfold.decorators import display
from .models import ESP32Config, Order, Salesperson, WeChatPayConfig, Service, VCCourse, ProductFeature, CommissionLog, WeChatUser, Distributor, Withdrawal, ServiceOrder, CourseEnrollment
from .models import ESP32Config, Order, Salesperson, WeChatPayConfig, Service, VCCourse, ProductFeature, CommissionLog, WeChatUser, Distributor, Withdrawal, ServiceOrder, CourseEnrollment, AdminPhoneNumber
import qrcode
from io import BytesIO
import base64
@@ -478,3 +478,9 @@ class WithdrawalAdmin(ModelAdmin):
'fields': ('created_at', 'updated_at')
}),
)
@admin.register(AdminPhoneNumber)
class AdminPhoneNumberAdmin(ModelAdmin):
list_display = ('name', 'phone_number', 'is_active', 'created_at')
list_filter = ('is_active',)
search_fields = ('name', 'phone_number')