You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
454 B

from django.contrib import admin
from reversion.admin import VersionAdmin
from models import Prednaska, Hlasovani
admin.site.register(Hlasovani)
class PrednaskaAdmin(VersionAdmin):
# fieldsets = [
# (None, {'fields': ['pdf', 'cas', 'stran', 'nazev', 'komentar']}),
# ]
list_display = ['nazev', 'org', 'obor']
list_filter = ['org','obor']
search_fields = []
admin.site.register(Prednaska,PrednaskaAdmin)