usaspending_api/references/models/toptier_agency_published_dabs_view.py
from django.db import models
class ToptierAgencyPublishedDABSView(models.Model):
toptier_code = models.TextField()
name = models.TextField()
abbreviation = models.TextField()
toptier_agency = models.OneToOneField(
"references.ToptierAgency", on_delete=models.DO_NOTHING, primary_key=True, related_name="%(class)s"
)
agency = models.OneToOneField(
"references.Agency", on_delete=models.DO_NOTHING, primary_key=False, related_name="%(class)s"
)
user_selectable = models.BooleanField()
class Meta:
db_table = "vw_published_dabs_toptier_agency"
managed = False