<filename>src/enquiries/models.py<gh_stars>0
from django.db import models
from django.utils.translation import gettext_lazy as _
from phonenumber_field.modelfields import PhoneNumberField
from src.common.models import TimeStampedUUIDModel

class Enquiry(TimeStampedUUIDModel):
  name = models.CharField(_('<NAME>'), max_length=100)
  phone_number = PhoneNumberField(_("Phone Number"), max_length=30, default='+250784123456')
  email = models.EmailField(_('Email'))
  subject = models.CharField(_('Subject'), max_length=100)
  message = models.TextField(_('Message'), blank=True)

  def __str__(self):
    return self.email
  
  class Meta:
    verbose_name_plural = 'Enquiries'

