Refactored email sending to use a single HTML template with a base layout, removed plain text email templates, and updated all related backend logic. Introduced a new ContactMe model, serializer, Celery task, and API endpoints for handling contact form submissions, including email notifications. Renamed ShopConfiguration to SiteConfiguration throughout the backend for consistency. Updated frontend to remove unused components, add a new Services section, and adjust navigation and contact form integration.
14 lines
319 B
Python
14 lines
319 B
Python
from django.db import models
|
|
|
|
# Create your models here.
|
|
|
|
class ContactMe(models.Model):
|
|
client_email = models.EmailField()
|
|
content = models.TextField()
|
|
|
|
sent_at = models.DateTimeField(auto_now_add=True)
|
|
|
|
def __str__(self):
|
|
return f"Email to {self.client_email} sent at {self.sent_at}"
|
|
|
|
|