mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 15:06:32 +02:00
23 lines
548 B
Python
23 lines
548 B
Python
from django.db import models
|
|
from .utility.time_stamped_model import TimeStampedModel
|
|
from registrar.models.portfolio import Portfolio
|
|
|
|
|
|
class Suborganization(TimeStampedModel):
|
|
"""
|
|
Suborganization under an organization (portfolio)
|
|
"""
|
|
name = models.CharField(
|
|
null=True,
|
|
blank=True,
|
|
unique=True,
|
|
help_text="Suborganization",
|
|
)
|
|
|
|
portfolio = models.ForeignKey(
|
|
"registrar.Portfolio",
|
|
on_delete=models.PROTECT,
|
|
)
|
|
|
|
def __str__(self) -> str:
|
|
return f"{self.name}"
|