|
@ -3,6 +3,7 @@ from django.contrib import admin |
|
|
from polymorphic.admin import PolymorphicParentModelAdmin, PolymorphicChildModelAdmin, PolymorphicChildModelFilter |
|
|
from polymorphic.admin import PolymorphicParentModelAdmin, PolymorphicChildModelAdmin, PolymorphicChildModelFilter |
|
|
from reversion.admin import VersionAdmin |
|
|
from reversion.admin import VersionAdmin |
|
|
from django_reverse_admin import ReverseModelAdmin |
|
|
from django_reverse_admin import ReverseModelAdmin |
|
|
|
|
|
from solo.admin import SingletonModelAdmin |
|
|
|
|
|
|
|
|
# Todo: reversion |
|
|
# Todo: reversion |
|
|
|
|
|
|
|
@ -160,5 +161,5 @@ class TextNodeAdmin(PolymorphicChildModelAdmin): |
|
|
show_in_index = True |
|
|
show_in_index = True |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(m.Nastaveni) |
|
|
admin.site.register(m.Nastaveni, SingletonModelAdmin) |
|
|
admin.site.register(m.Novinky) |
|
|
admin.site.register(m.Novinky) |
|
|