add faqs to homepage
This commit is contained in:
parent
3519da52aa
commit
7f7e5baa98
6 changed files with 113 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue