toolshed/backend/files/admin.py

11 lines
283 B
Python
Raw Normal View History

2023-11-01 00:50:00 +00:00
from django.contrib import admin
from .models import File
class FileAdmin(admin.ModelAdmin):
list_display = ('id', 'hash', 'mime_type', 'created_at', 'updated_at')
list_filter = ('id', 'hash', 'mime_type', 'created_at', 'updated_at')
admin.site.register(File, FileAdmin)