class Company(models.Model):
    permission_classes = IsCompanyMember,
name = models.CharField(unique=True, max_length=100, verbose_name=
    'company name', null=False)


class Profile(models.Model):
    company = models.ForeignKey(Company, on_delete=models.CASCADE, null=True)
user = models.OneToOneField(User, on_delete=models.CASCADE)
is_company_admin = models.BooleanField(default=False, null=False)
is_email_validated = models.BooleanField(default=False, null=False)
is_approved_by_company_admin = models.BooleanField(default=False, null=False)
Дополнительные поля сериализатора в Django REST Framework 3