add faqs to homepage

This commit is contained in:
Tobias Brunner 2025-03-06 11:35:55 +01:00
parent 3519da52aa
commit 7f7e5baa98
No known key found for this signature in database
6 changed files with 113 additions and 1 deletions

View file

@ -337,3 +337,15 @@ class Lead(models.Model):
def __str__(self):
return f"{self.name} - {self.company} ({self.service})"
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