from django.contrib import admin from reversion.admin import VersionAdmin from korektury.models import KorekturovanePDF # Register your models here. class KorekturovanePDFAdmin(VersionAdmin): readonly_fields = ['cas', 'stran'] fieldsets = [ (None, {'fields': ['pdf', 'cas', 'stran', 'nazev', 'komentar']}), # (u'PDF', {'fields': ['pdf']}), ] list_display = ['nazev', 'cas', 'stran'] list_filter = [] search_fields = [] admin.site.register(KorekturovanePDF, KorekturovanePDFAdmin)