mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 01:27:03 +02:00
fix error in admin.py
This commit is contained in:
parent
3f8e5ce204
commit
52b76a7998
1 changed files with 1 additions and 1 deletions
|
@ -1258,7 +1258,7 @@ class VeryImportantPersonAdmin(ListHeaderAdmin):
|
|||
|
||||
def save_model(self, request, obj, form, change):
|
||||
# Set the user field to the current admin user
|
||||
obj.requestor = request.requestor if request.requestor.is_authenticated else None
|
||||
obj.requestor = request.user if request.user.is_authenticated else None
|
||||
super().save_model(request, obj, form, change)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue