feat: contact form and more edits
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class ContactSubmission(models.Model):
|
||||
name = models.CharField(max_length=200)
|
||||
title = models.CharField(max_length=300)
|
||||
description = models.TextField()
|
||||
email = models.EmailField(blank=True)
|
||||
submitted_at = models.DateTimeField(auto_now_add=True)
|
||||
is_read = models.BooleanField(default=False)
|
||||
|
||||
class Meta:
|
||||
ordering = ["-submitted_at"]
|
||||
verbose_name = "Contact Submission"
|
||||
verbose_name_plural = "Contact Submissions"
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.name} — {self.title}"
|
||||
|
||||
|
||||
class FAQEntry(models.Model):
|
||||
question = models.CharField(max_length=500)
|
||||
answer = models.TextField()
|
||||
|
||||
Reference in New Issue
Block a user