From: Guillaume Pellerin Date: Wed, 3 Feb 2016 16:59:41 +0000 (+0100) Subject: try initial X-Git-Tag: 1.1~161 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e063ab20070ec96aeefbf9c3abf3a4e648b9d05b;p=teleforma.git try initial --- 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 -