Don't show reminder_sent field in cfp form
authorMagnus Hagander <magnus@hagander.net>
Tue, 6 Nov 2018 10:03:58 +0000 (11:03 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 6 Nov 2018 10:03:58 +0000 (11:03 +0100)
In fact, change the form to contain a whitelist of fields instead of an
exclusion list. Otherwise, new things added to ConferenceSession
apperars on the callforpapers form by default, which is never good.

Spotted by Stephen

postgresqleu/confreg/forms.py

index 8b91c6a5ae4ca952dbc1ff0af99de662dffc8a79..b1412418c17fa9a43c4ac01756c61ece056acf1b 100644 (file)
@@ -447,10 +447,7 @@ class CallForPapersSubmissionForm(forms.Form):
 class CallForPapersForm(forms.ModelForm):
        class Meta:
                model = ConferenceSession
-               exclude = ('conference', 'speaker', 'starttime', 'endtime',
-                                  'room', 'cross_schedule', 'can_feedback', 'status',
-                                  'initialsubmit', 'tentativescheduleslot', 'tentativeroom',
-                                  'lastnotifiedstatus', 'lastnotifiedtime', )
+               fields = ('title', 'abstract', 'skill_level', 'track', 'submissionnote',)
 
        def __init__(self, *args, **kwargs):
                super(CallForPapersForm, self).__init__(*args, **kwargs)