projects
/
pgeu-website.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00bb96c
)
Don't show reminder_sent field in cfp form
author
Magnus Hagander
<magnus@hagander.net>
Tue, 6 Nov 2018 10:03:58 +0000
(11:03 +0100)
committer
Magnus 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
patch
|
blob
|
blame
|
history
diff --git
a/postgresqleu/confreg/forms.py
b/postgresqleu/confreg/forms.py
index 8b91c6a5ae4ca952dbc1ff0af99de662dffc8a79..b1412418c17fa9a43c4ac01756c61ece056acf1b 100644
(file)
--- a/
postgresqleu/confreg/forms.py
+++ b/
postgresqleu/confreg/forms.py
@@
-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)