mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 05:26:28 +02:00
Fix pre-existing bug with sortfields
The AdminSortFields helper is incorrectly sorting the senior_official contact object. Added a workaround as this ultimately needs a refactor
This commit is contained in:
parent
7273620141
commit
ad674e646b
5 changed files with 41 additions and 10 deletions
|
@ -87,5 +87,5 @@ class PortfolioSeniorOfficialForm(forms.ModelForm):
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
if self.instance:
|
||||
if self.instance and self.instance.id:
|
||||
self.fields["full_name"].initial = self.instance.get_formatted_name()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue