Fix missing 'THEME' key

Change-Id: If1a296c3c9bb1fd7de2effa107d898a482754ed8
Closes-bug: 1603307
This commit is contained in:
Rob Cresswell 2016-07-20 15:41:18 +01:00 committed by David Lyle
parent c386d05631
commit 126860671c
1 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,10 @@ _local = threading.local()
# Get the themes from settings
def get_themes():
return getattr(settings, 'AVAILABLE_THEMES', [])
return getattr(settings, 'AVAILABLE_THEMES',
[(get_default_theme(),
get_default_theme(),
os.path.join(get_theme_dir(), get_default_theme()))])
# Get the themes dir from settings