1
0
bthlabs-jsonrpc/packages/bthlabs-jsonrpc-django/example/bthlabs_jsonrpc_django_example/things/admin.py

15 lines
379 B
Python
Raw Permalink Normal View History

# -*- coding: utf-8 -*-
2024-01-15 20:20:10 +00:00
# bthlabs-jsonrpc-django | (c) 2022-present Tomek Wójcik | MIT License
from __future__ import annotations
2024-01-15 20:20:10 +00:00
from django.contrib import admin
from bthlabs_jsonrpc_django_example.things import models
class ThingAdmin(admin.ModelAdmin):
list_display = ('pk', 'name', 'created_at', 'owner', 'is_active')
admin.site.register(models.Thing, ThingAdmin)