Priprava autocomplete tagu a pod., vzhled adminu
This commit is contained in:
parent
74bf1afafe
commit
8e1e30e672
3 changed files with 22 additions and 10 deletions
|
@ -49,9 +49,11 @@ AUTHENTICATION_BACKENDS = (
|
||||||
)
|
)
|
||||||
|
|
||||||
TEMPLATE_LOADERS = (
|
TEMPLATE_LOADERS = (
|
||||||
'django.template.loaders.filesystem.Loader',
|
('django.template.loaders.cached.Loader', (
|
||||||
'django.template.loaders.app_directories.Loader',
|
'django.template.loaders.filesystem.Loader',
|
||||||
'django.template.loaders.eggs.Loader'
|
'django.template.loaders.app_directories.Loader',
|
||||||
|
'django.template.loaders.eggs.Loader'
|
||||||
|
)),
|
||||||
)
|
)
|
||||||
|
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE_CLASSES = (
|
||||||
|
@ -95,17 +97,22 @@ INSTALLED_APPS = (
|
||||||
'solo',
|
'solo',
|
||||||
'ckeditor',
|
'ckeditor',
|
||||||
'taggit',
|
'taggit',
|
||||||
|
'autocomplete_light',
|
||||||
|
|
||||||
# MaMweb
|
# MaMweb
|
||||||
'mamweb',
|
'mamweb',
|
||||||
'seminar',
|
'seminar',
|
||||||
|
|
||||||
# Prvni:
|
# Admin upravy:
|
||||||
'autocomplete_light',
|
|
||||||
'admin_tools',
|
# 'material',
|
||||||
'admin_tools.theming',
|
# 'material.admin',
|
||||||
'admin_tools.menu',
|
# 'admin_tools',
|
||||||
'admin_tools.dashboard',
|
# 'admin_tools.theming',
|
||||||
|
# 'admin_tools.menu',
|
||||||
|
# 'admin_tools.dashboard',
|
||||||
|
'flat',
|
||||||
|
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,10 @@ django-sekizai==0.8.1
|
||||||
django-countries==3.2
|
django-countries==3.2
|
||||||
django-solo==1.1.0
|
django-solo==1.1.0
|
||||||
django-ckeditor==4.4.7
|
django-ckeditor==4.4.7
|
||||||
django-admin-tools==0.5.2
|
django-flat-theme==0.9.3
|
||||||
django-taggit==0.14.0
|
django-taggit==0.14.0
|
||||||
django-autocomplete-light==2.1.1
|
django-autocomplete-light==2.1.1
|
||||||
|
# django-admin-tools==0.5.2
|
||||||
|
|
||||||
# debug tools/extensions
|
# debug tools/extensions
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
import autocomplete_light
|
import autocomplete_light
|
||||||
|
|
||||||
from models import Skola, Resitel, Problem
|
from models import Skola, Resitel, Problem
|
||||||
|
from taggit.models import Tag
|
||||||
|
|
||||||
|
|
||||||
|
autocomplete_light.register(Tag)
|
||||||
|
|
||||||
|
|
||||||
class SkolaAutocomplete(autocomplete_light.AutocompleteModelBase):
|
class SkolaAutocomplete(autocomplete_light.AutocompleteModelBase):
|
||||||
|
|
Loading…
Reference in a new issue