36504-vm/core/models.py
Flatlogic Bot 8f822e36b6 2.0
2025-11-30 16:45:49 +00:00

12 lines
473 B
Python

from django.db import models
class ContactSubmission(models.Model):
full_name = models.CharField(max_length=100)
email = models.EmailField(blank=True)
phone = models.CharField(max_length=20)
formation_interest = models.CharField(max_length=200, blank=True)
message = models.TextField(blank=True)
created_at = models.DateTimeField(auto_now_add=True)
def __str__(self):
return f"{self.full_name} - {self.created_at.strftime('%Y-%m-%d')}"