Skip to content

Commit

Permalink
jira-link-class-based-views Use instance password on JiraForm if not …
Browse files Browse the repository at this point in the history
…supplied from form
  • Loading branch information
dogboat committed Mar 29, 2024
1 parent 8ea7a33 commit ff599a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dojo/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2333,6 +2333,11 @@ def __init__(self, *args, **kwargs):
if self.instance:
self.fields['password'].required = False

def clean(self):
if self.instance and not self.cleaned_data['password']:
self.cleaned_data['password'] = self.instance.password
return super().clean()

class Meta:
model = JIRA_Instance
exclude = ['']
Expand Down

0 comments on commit ff599a5

Please sign in to comment.