refactor models into files

This commit is contained in:
Tobias Brunner 2025-05-23 16:04:33 +02:00
parent c3d20fda7b
commit f5f4ec8ac9
No known key found for this signature in database
8 changed files with 716 additions and 687 deletions

View file

@ -0,0 +1,14 @@
from django.db import models
from django_prose_editor.fields import ProseEditorField
class WebsiteFaq(models.Model):
question = models.CharField(max_length=200)
answer = ProseEditorField()
order = models.IntegerField(default=0)
class Meta:
ordering = ["order"]
def __str__(self):
return self.question