rework prose editor configuration

This commit is contained in:
Tobias Brunner 2025-07-08 16:24:28 +02:00
parent 6b689704b0
commit 166f518db0
No known key found for this signature in database
5 changed files with 46 additions and 15 deletions

View file

@ -1,10 +1,10 @@
from django.db import models
from django_prose_editor.fields import ProseEditorField
from .base import get_prose_editor_field
class WebsiteFaq(models.Model):
question = models.CharField(max_length=200)
answer = ProseEditorField()
answer = get_prose_editor_field()
order = models.IntegerField(default=0)
class Meta: