mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 08:52:16 +02:00
22 lines
486 B
Python
22 lines
486 B
Python
from django.db import models
|
|
from .utility.time_stamped_model import TimeStampedModel
|
|
|
|
|
|
class Suborganization(TimeStampedModel):
|
|
"""
|
|
Suborganization under an organization (portfolio)
|
|
"""
|
|
|
|
name = models.CharField(
|
|
unique=True,
|
|
max_length=1000,
|
|
help_text="Suborganization",
|
|
)
|
|
|
|
portfolio = models.ForeignKey(
|
|
"registrar.Portfolio",
|
|
on_delete=models.PROTECT,
|
|
)
|
|
|
|
def __str__(self) -> str:
|
|
return f"{self.name}"
|