admin.py 270 B

12345678910
  1. from django.contrib import admin
  2. from .models import File
  3. # Register your models here.
  4. class FileAdmin(admin.ModelAdmin):
  5. list_display = ["file_id", "file_name", "father_folder", "update_time", "file_type", "owner", "group"]
  6. admin.site.register(File, FileAdmin)