From b38fb7b4a69fca25e712066cc0e1696ac28958f1 Mon Sep 17 00:00:00 2001 From: Sylvain Boissel Date: Tue, 25 Jun 2024 10:19:41 +0200 Subject: [PATCH] Revert changes on content_manager --- content_manager/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content_manager/models.py b/content_manager/models.py index e4f6585c..3232eeae 100644 --- a/content_manager/models.py +++ b/content_manager/models.py @@ -1,5 +1,5 @@ from django.db import models -from django.forms import widgets +from django.forms.widgets import Textarea from django.utils.translation import gettext_lazy as _ from modelcluster.fields import ParentalKey from modelcluster.models import ClusterableModel @@ -47,7 +47,7 @@ class MonospaceField(models.TextField): """ def formfield(self, **kwargs): - kwargs["widget"] = widgets.Textarea( + kwargs["widget"] = Textarea( attrs={ "rows": 12, "class": "monospace",