Skip to content
Snippets Groups Projects
Unverified Commit 86ddc005 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Try another way to get person name.

parent 47132186
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,8 @@ class PersonalNoteForm(forms.ModelForm):
person_name = forms.CharField(disabled=True)
def __init__(self, *args, **kwargs):
kwargs.update(initial={'person_name': str(kwargs['instance'].person)})
super().__init__(*args, **kwargs)
self.fields['person_name'].initial = str(self.instance.person)
PersonalNoteFormSet = forms.modelformset_factory(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment