From e063ab20070ec96aeefbf9c3abf3a4e648b9d05b Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 3 Feb 2016 17:59:41 +0100 Subject: [PATCH] try initial --- teleforma/forms.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/teleforma/forms.py b/teleforma/forms.py index 6d8b67f7..ac1f1b9a 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -66,7 +66,6 @@ class StudentInline(InlineFormSet): 'oral_1', ] def get_initial(self): - initial = super(StudentInline,self ).get_initial() - initial['procedure'].queryset = Course.objects.filter(title__contains='civil') + initial = super(StudentInline, self).get_initial() + initial['procedure'] = Course.objects.filter(title__contains='civil') return initial - -- 2.39.5