Skip to content

Commit

Permalink
[fix] Removed static() call from admin media
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Nov 13, 2020
1 parent cc0c427 commit 264cfb8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django_x509/base/admin.py
Expand Up @@ -3,7 +3,6 @@
from django.contrib.admin import ModelAdmin
from django.http import HttpResponse
from django.shortcuts import get_object_or_404, render
from django.templatetags.static import static
from django.urls import reverse
from django.utils.html import format_html
from django.utils.translation import ngettext
Expand Down Expand Up @@ -50,7 +49,7 @@ class BaseAdmin(ModelAdmin):
]

class Media:
css = {'all': (static('django-x509/css/admin.css'),)}
css = {'all': ('django-x509/css/admin.css',)}

def __init__(self, *args, **kwargs):
self.readonly_fields += ('created', 'modified')
Expand Down

0 comments on commit 264cfb8

Please sign in to comment.