first commit
This commit is contained in:
22
utils/admin.py
Normal file
22
utils/admin.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
|
||||
|
||||
from .models import JsonToType
|
||||
|
||||
|
||||
@admin.register(JsonToType)
|
||||
class JsonToTypeAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
'id',
|
||||
'user',
|
||||
'title',
|
||||
'json_data',
|
||||
'type_data',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
'is_active',
|
||||
)
|
||||
list_filter = ('user', 'created_at', 'updated_at', 'is_active')
|
||||
date_hierarchy = 'created_at'
|
||||
Reference in New Issue
Block a user