|
|
@ -8,7 +8,7 @@ from ckeditor.widgets import CKEditorWidget |
|
|
|
from django.db.models import Count |
|
|
|
from django.db import models |
|
|
|
|
|
|
|
from seminar.models import Skola, Resitel, Rocnik, Cislo, Problem, Reseni, PrilohaReseni, Nastaveni, Soustredeni, Soustredeni_Ucastnici, Novinky |
|
|
|
from seminar.models import Skola, Resitel, Rocnik, Cislo, Problem, Reseni, PrilohaReseni, Nastaveni, Soustredeni, Soustredeni_Ucastnici, Novinky, Organizator |
|
|
|
import autocomplete_light |
|
|
|
|
|
|
|
|
|
|
@ -329,5 +329,11 @@ class NovinkyAdminForm(forms.ModelForm): |
|
|
|
class NovinkyAdmin(admin.ModelAdmin): |
|
|
|
form = NovinkyAdminForm |
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(Novinky, NovinkyAdmin) |
|
|
|
|
|
|
|
### Organizator |
|
|
|
|
|
|
|
@admin.register(Organizator) |
|
|
|
class OrganizatorAdmin(admin.ModelAdmin): |
|
|
|
list_filter = ['organizuje_do_roku'] |
|
|
|
|
|
|
|