addons-server/apps/files/admin.py

11 строки
168 B
Python

from django.contrib import admin
from .models import File
class FileAdmin(admin.ModelAdmin):
raw_id_fields = ('version',)
admin.site.register(File, FileAdmin)