Skip to content

Commit

Permalink
Update mixins.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oriolclosa authored Oct 29, 2024
1 parent 8318568 commit 5926cbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion djedi/admin/mixins.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import simplejson as json
from django.conf import settings as django_settings
from django.http import HttpResponse
from django.templatetags.static import static

import djedi
from cio.conf import settings
Expand Down Expand Up @@ -34,7 +35,7 @@ def get_context_data(self, **context):
theme = settings.THEME

if "/" not in theme:
theme = f"{django_settings.STATIC_URL}djedi/themes/{theme}/theme.css"
theme = static(f"djedi/themes/{theme}/theme.css")

context["THEME"] = theme
context["VERSION"] = djedi.__version__
Expand Down

0 comments on commit 5926cbd

Please sign in to comment.