Skip to content

Commit 264cfb8

Browse files
committed
[fix] Removed static() call from admin media
Related to openwisp/ansible-openwisp2#216
1 parent cc0c427 commit 264cfb8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

django_x509/base/admin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from django.contrib.admin import ModelAdmin
44
from django.http import HttpResponse
55
from django.shortcuts import get_object_or_404, render
6-
from django.templatetags.static import static
76
from django.urls import reverse
87
from django.utils.html import format_html
98
from django.utils.translation import ngettext
@@ -50,7 +49,7 @@ class BaseAdmin(ModelAdmin):
5049
]
5150

5251
class Media:
53-
css = {'all': (static('django-x509/css/admin.css'),)}
52+
css = {'all': ('django-x509/css/admin.css',)}
5453

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

0 commit comments

Comments
 (0)