Skip to content

Commit

Permalink
improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Nov 13, 2024
1 parent e12de15 commit 33ea323
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/argus_htmx/themes/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured

from argus_htmx import settings as default_htmx_settings
from argus_htmx import settings as fallbacks


__all__ = [
Expand All @@ -15,7 +15,7 @@


def get_themes_from_setting():
themes_setting = getattr(settings, "DAISYUI_THEMES", default_htmx_settings.DAISYUI_THEMES)
themes_setting = getattr(settings, "DAISYUI_THEMES", fallbacks.DAISYUI_THEMES)
theme_names = []
for theme in themes_setting:
if isinstance(theme, str):
Expand All @@ -26,7 +26,7 @@ def get_themes_from_setting():


def get_stylesheet_path():
return getattr(settings, "STYLESHEET_PATH", default_htmx_settings.STYLESHEET_PATH)
return getattr(settings, "STYLESHEET_PATH", fallbacks.STYLESHEET_PATH)


def get_themes_from_css():
Expand All @@ -51,4 +51,4 @@ def get_theme_names():


def get_theme_default():
return getattr(settings, "THEME_DEFAULT", default_htmx_settings.THEME_DEFAULT)
return getattr(settings, "THEME_DEFAULT", fallbacks.THEME_DEFAULT)

0 comments on commit 33ea323

Please sign in to comment.