mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
linted
This commit is contained in:
parent
1f2d63070d
commit
46c2326933
3 changed files with 3 additions and 3 deletions
|
@ -2563,7 +2563,7 @@ class PortfolioAdmin(ListHeaderAdmin):
|
|||
|
||||
def save_model(self, request, obj, form, change):
|
||||
|
||||
if not obj.creator is None:
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue