mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 01:57:03 +02:00
removed if statement that checks if creator is None
This commit is contained in:
parent
76e5b8480d
commit
046b1a8438
1 changed files with 2 additions and 5 deletions
|
@ -2866,9 +2866,6 @@ class PortfolioAdmin(ListHeaderAdmin):
|
|||
|
||||
def save_model(self, request, obj, form, change):
|
||||
|
||||
if obj.creator is not None:
|
||||
# ---- update creator ----
|
||||
# Set the creator field to the current admin user
|
||||
obj.creator = request.user if request.user.is_authenticated else None
|
||||
# ---- update organization name ----
|
||||
# org name will be the same as federal agency, if it is federal,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue