This commit is contained in:
ariska committed 2024-11-19 13:00:24 +07:00
commit 45e3c1f698
3462 files changed
+617437

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
from django.db import models
# # # # # # # # # # # # # # # # # #
# Contact Model #
# # # # # # # # # # # # # # # # # #
class Contact(models.Model):
name = models.CharField(max_length=100)
email = models.EmailField()
phone = models.CharField(max_length=100, blank=True, null=True)
subject = models.CharField(max_length=100)
message = models.TextField()
created_at = models.DateField(auto_now_add=True)
def __str__(self):
return self.name
# # # # # # # # # # # # # # # # # #
# Contact Page SEO #
# # # # # # # # # # # # # # # # # #
class contactPageSEO(models.Model):
meta_title = models.CharField(max_length=500, blank=True, null=True)
meta_description = models.CharField(max_length=1000, blank=True, null=True)
def __str__(self):
return self.meta_title