Load jetbrains mono in admin too

This commit is contained in:
Gabriel Augendre 2022-03-31 20:00:09 +02:00
parent fe2098cb71
commit 2fd054da05

View file

@ -112,7 +112,12 @@ class ArticleAdmin(admin.ModelAdmin):
actions = [publish, unpublish, refresh_draft_key] actions = [publish, unpublish, refresh_draft_key]
class Media: class Media:
css = {"all": ("admin_articles.css",)} css = {
"all": (
"vendor/fonts/jetbrains-mono.css",
"admin_articles.css",
)
}
def response_post_save_add( def response_post_save_add(
self, request: HttpRequest, obj: Article self, request: HttpRequest, obj: Article