website/hub/services/models/content.py

15 lines
332 B
Python
Raw Normal View History

2025-05-23 16:04:33 +02:00
from django.db import models
2025-07-08 16:24:28 +02:00
from .base import get_prose_editor_field
2025-05-23 16:04:33 +02:00
class WebsiteFaq(models.Model):
question = models.CharField(max_length=200)
2025-07-08 16:24:28 +02:00
answer = get_prose_editor_field()
2025-05-23 16:04:33 +02:00
order = models.IntegerField(default=0)
class Meta:
ordering = ["order"]
def __str__(self):
return self.question