26 lines
958 B
Python
26 lines
958 B
Python
from django.db import models
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from api.core.models.trackable_model import TrackableModel
|
|
|
|
|
|
class ContactPerson(TrackableModel):
|
|
"""
|
|
Model representing a contact person linked to a prospect.
|
|
"""
|
|
|
|
prospect = models.ForeignKey(
|
|
"Prospect", verbose_name=_("prospect"), on_delete=models.PROTECT
|
|
)
|
|
first_name = models.CharField(verbose_name=_("prénom"), max_length=50, blank=True)
|
|
last_name = models.CharField(verbose_name=_("nom"), max_length=50, blank=True)
|
|
function = models.CharField(verbose_name=_("fonction"), max_length=100, blank=True)
|
|
deciding = models.BooleanField(verbose_name=_("décideur"), default=False)
|
|
preferred_contact_days_hours = models.TextField(
|
|
verbose_name=_("Jours et heures de contact préférés"), blank=True, default=""
|
|
)
|
|
|
|
class Meta:
|
|
verbose_name = _("Contact")
|
|
verbose_name_plural = _("Contacts")
|