add admin view for File model
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
67aba0efa7
commit
41b6bffa61
1 changed files with 11 additions and 0 deletions
11
backend/files/admin.py
Normal file
11
backend/files/admin.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
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)
|
Loading…
Reference in a new issue