mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
Model updates and cleanup of comments
This commit is contained in:
parent
2c96eebc6f
commit
42efc73722
5 changed files with 17 additions and 25 deletions
|
@ -2562,9 +2562,11 @@ class PortfolioAdmin(ListHeaderAdmin):
|
|||
# ]
|
||||
|
||||
def save_model(self, request, obj, form, change):
|
||||
# ---- update creator ----
|
||||
# Set the creator field to the current admin user
|
||||
obj.creator = request.user if request.user.is_authenticated else None
|
||||
|
||||
if not obj.creator is 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