toolshed/backend/files/admin.py
jedi 41b6bffa61
All checks were successful
continuous-integration/drone/push Build is passing
add admin view for File model
2023-11-01 01:50:00 +01:00

11 lines
No EOL
283 B
Python

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)