mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-12 14:08:28 +02:00
change to foreign key definition in portfolio
This commit is contained in:
parent
01a6257ef4
commit
c17e4e4eaa
2 changed files with 6 additions and 2 deletions
|
@ -24,7 +24,11 @@ class Portfolio(TimeStampedModel):
|
|||
# Stores who created this model. If no creator is specified in DJA,
|
||||
# then the creator will default to the current request user"""
|
||||
creator = models.ForeignKey(
|
||||
"registrar.User", on_delete=models.PROTECT, help_text="Associated user", related_name="creator", unique=False
|
||||
"registrar.User",
|
||||
on_delete=models.PROTECT,
|
||||
help_text="Associated user",
|
||||
related_name="created_portfolios",
|
||||
unique=False,
|
||||
)
|
||||
|
||||
notes = models.TextField(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue