mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-06 17:36:20 +00:00
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m18s
23 lines
408 B
Python
23 lines
408 B
Python
from django.contrib import admin
|
|
|
|
# Register your models here.
|
|
from .models import 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)
|