mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 05:26:07 +00:00
Refactor device management: add vendor field, enhance admin display, and improve MAC address handling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m18s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m18s
This commit is contained in:
@ -3,4 +3,20 @@ from django.contrib import admin
|
||||
# Register your models here.
|
||||
from .models import Device
|
||||
|
||||
admin.site.register(Device)
|
||||
|
||||
class DeviceAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
"user",
|
||||
"mac",
|
||||
"vendor",
|
||||
"blocked_by",
|
||||
"name",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
)
|
||||
search_fields = ("mac", "name")
|
||||
list_filter = ("user",)
|
||||
|
||||
|
||||
admin.site.register(Device, DeviceAdmin)
|
||||
|
Reference in New Issue
Block a user