buyer/models.py
from directory_constants import choices
from django.db import models
from core.helpers import TimeStampedModel
class Buyer(TimeStampedModel):
email = models.EmailField()
name = models.CharField(max_length=255)
sector = models.CharField(
choices=choices.INDUSTRIES,
max_length=255,
)
company_name = models.CharField(max_length=255)
country = models.CharField(max_length=255)
def __str__(self):
return self.name