style: Fix majority of Prospector complaints

Mainly whitespace fixes
This commit is contained in:
James Graham
2020-02-21 17:28:43 +00:00
parent 6d2737b1a6
commit abcfd67f77
5 changed files with 33 additions and 34 deletions

View File

@@ -17,7 +17,7 @@ class PersonForm(forms.ModelForm):
'relationship_targets',
]
class RelationshipForm(forms.ModelForm):
"""
Form to allow users to describe a relationship - includes :class:`RelationshipQuestion`s.
@@ -30,7 +30,7 @@ class RelationshipForm(forms.ModelForm):
'source',
'target',
]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@@ -50,7 +50,6 @@ class RelationshipForm(forms.ModelForm):
# Save answers to relationship questions
for key, value in self.cleaned_data.items():
if key.startswith('question_'):
question_pk = key.split('_')[-1]
answer = models.RelationshipQuestionChoice.objects.get(pk=value)
self.instance.question_answers.add(answer)