add faq section

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-01-12 11:43:40 +05:00
parent b5c8f7da84
commit 2c3470578b
3 changed files with 22 additions and 1 deletions

View File

@@ -38,3 +38,13 @@ class ContactMessage(models.Model):
def __str__(self):
return f"Message from {self.name}"
# ======== FAQ MODEL ========
class FAQ(models.Model):
question_uz = models.CharField(max_length=255)
question_ru = models.CharField(max_length=255)
answer_uz = models.TextField()
answer_ru = models.TextField()
def __str__(self):
return f"FAQ: {self.question_uz}"