Skip to content

Commit

Permalink
[#1656] Added CKEditor widget to category description field
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-sigma committed Sep 26, 2023
1 parent b42823b commit 642ffa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/open_inwoner/pdc/admin/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from treebeard.admin import TreeAdmin
from treebeard.forms import movenodeform_factory

from open_inwoner.ckeditor5.widgets import CKEditorWidget
from open_inwoner.utils.logentry import system_action

from ..models import Category, CategoryProduct
Expand All @@ -31,6 +32,7 @@ class CategoryAdminForm(movenodeform_factory(Category)):
class Meta:
model = Category
fields = "__all__"
widgets = {"description": CKEditorWidget}

def clean(self, *args, **kwargs):
cleaned_data = super().clean(*args, **kwargs)
Expand Down

0 comments on commit 642ffa3

Please sign in to comment.