From 58e096b92f9b71b197c033b2227ce348b05cf115 Mon Sep 17 00:00:00 2001 From: Evan Date: Wed, 22 Nov 2023 18:58:35 +0000 Subject: [PATCH] . --- judge/widgets/martor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/judge/widgets/martor.py b/judge/widgets/martor.py index 9f8738e0bf..4e885c9285 100644 --- a/judge/widgets/martor.py +++ b/judge/widgets/martor.py @@ -12,6 +12,10 @@ class Media: class AdminMartorWidget(OldAdminMartorWidget): + def __init__(self, *args, **kwargs): + kwargs.setdefault('uploads_enabled', True) + super().__init__(*args, **kwargs) + class Media: css = MartorWidget.Media.css js = ['admin/js/jquery.init.js', 'martor-mathjax.js']