ziafazal: improvements need for multi-tenancy ziafazal: fixed broken tests ziafazal: no need to add setting in test.py ziafazal: added hostname validation ziafazal: changes after feedback from mattdrayer ziafazal: fixed branding and microsite broken tests ziafazal: make STATICFILES_DIRS to list ziafazal: added theme directory to mako lookup for tests ziafazal: added more protection in test_util saleem-latif: Enable SCSS Overrides for Comprehensive Theming saleem-latif: Incoporate feedback changes, Correct test failures, add tests and enable theming for django templates saleem-latif: Correct errors in python tests mattdrayer: Fix invalid release reference mattdrayer: Update django-wiki reference to latest release saleem-latif: Update Theme storages to work with Caching, Pipeline and collectstatic saleem-latif: Incorporate feedback changes mattdrayer: Pylint violation fix mattdrayer: Fix broken pavelib test
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)
|