From 94a8e2650797a1f31cdeb21234b75be93e476945 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Tue, 7 Aug 2018 15:28:51 +0200
Subject: [PATCH] Field invalid form field key

---
 colleges/forms.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/colleges/forms.py b/colleges/forms.py
index 3f620b09b..8ae479254 100644
--- a/colleges/forms.py
+++ b/colleges/forms.py
@@ -116,7 +116,7 @@ class FellowVotingRemoveSubmissionForm(forms.ModelForm):
 
 class FellowshipAddSubmissionForm(forms.ModelForm):
     submission = forms.ModelChoiceField(
-        queryset=None, to_field_name='preprint__identifier_w_vn_nr',
+        queryset=Submission.objects.none(),
         empty_label="Please choose the Submission to add to the pool")
 
     class Meta:
@@ -136,8 +136,9 @@ class FellowshipAddSubmissionForm(forms.ModelForm):
 
 
 class SubmissionAddFellowshipForm(forms.ModelForm):
-    fellowship = forms.ModelChoiceField(queryset=None, to_field_name='id',
-                                        empty_label="Please choose the Fellow to add to the Pool")
+    fellowship = forms.ModelChoiceField(
+        queryset=None, to_field_name='id',
+        empty_label="Please choose the Fellow to add to the Pool")
 
     class Meta:
         model = Submission
@@ -201,8 +202,9 @@ class FellowshipRemoveProceedingsForm(forms.ModelForm):
 
 
 class FellowshipAddProceedingsForm(forms.ModelForm):
-    proceedings = forms.ModelChoiceField(queryset=None, to_field_name='id',
-                                         empty_label="Please choose the Proceedings to add to the Pool")
+    proceedings = forms.ModelChoiceField(
+        queryset=None, to_field_name='id',
+        empty_label="Please choose the Proceedings to add to the Pool")
 
     class Meta:
         model = Fellowship
-- 
GitLab