rework prose editor configuration
This commit is contained in:
parent
6b689704b0
commit
166f518db0
5 changed files with 46 additions and 15 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue