2. Update COMPREHNSIVE_THEME_DIR to COMPREHENSIVE_THEME_DIRS 3. Update paver commands to support multi theme dirs 4. Updating template loaders 5. Add ENABLE_COMPREHENSIVE_THEMING flag to enable or disable theming via settings 6. Update tests 7. Add backward compatibility for COMPREHEHNSIVE_THEME_DIR
23 lines
483 B
Python
23 lines
483 B
Python
"""
|
|
Django admin page for theming models
|
|
"""
|
|
from django.contrib import admin
|
|
|
|
from .models import (
|
|
SiteTheme,
|
|
)
|
|
|
|
|
|
class SiteThemeAdmin(admin.ModelAdmin):
|
|
""" Admin interface for the SiteTheme object. """
|
|
list_display = ('site', 'theme_dir_name')
|
|
search_fields = ('site__domain', 'theme_dir_name')
|
|
|
|
class Meta(object):
|
|
"""
|
|
Meta class for SiteTheme admin model
|
|
"""
|
|
model = SiteTheme
|
|
|
|
admin.site.register(SiteTheme, SiteThemeAdmin)
|