From 126860671c082d032102a720832e5f8cfefa537a Mon Sep 17 00:00:00 2001 From: Rob Cresswell Date: Wed, 20 Jul 2016 15:41:18 +0100 Subject: [PATCH] Fix missing 'THEME' key Change-Id: If1a296c3c9bb1fd7de2effa107d898a482754ed8 Closes-bug: 1603307 --- horizon/themes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/horizon/themes.py b/horizon/themes.py index 36976e13e0..f80ee74d7a 100644 --- a/horizon/themes.py +++ b/horizon/themes.py @@ -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