mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 01:57:03 +02:00
reformmatted
This commit is contained in:
parent
b5330e1c38
commit
d8ed5e4f7b
1 changed files with 2 additions and 2 deletions
|
@ -2866,7 +2866,7 @@ class PortfolioAdmin(ListHeaderAdmin):
|
|||
|
||||
def save_model(self, request, obj, form, change):
|
||||
|
||||
if hasattr(obj, 'creator') is False:
|
||||
if hasattr(obj, "creator") is False:
|
||||
# ---- update creator ----
|
||||
# Set the creator field to the current admin user
|
||||
obj.creator = request.user if request.user.is_authenticated else None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue