fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update registration confirmation and turn off translation
[prawokultury.git]
/
prawokultury
/
contact_forms.py
diff --git
a/prawokultury/contact_forms.py
b/prawokultury/contact_forms.py
index
9beda3d
..
6a5130f
100644
(file)
--- a/
prawokultury/contact_forms.py
+++ b/
prawokultury/contact_forms.py
@@
-7,7
+7,7
@@
from contact.forms import ContactForm
from contact.models import Contact
from contact.fields import HeaderField
from django.utils.functional import lazy
from contact.models import Contact
from contact.fields import HeaderField
from django.utils.functional import lazy
-from django.utils.translation import ugettext_
lazy
as _
+from django.utils.translation import ugettext_
noop
as _
from django.utils.safestring import mark_safe
from migdal.models import Entry
from django.utils.safestring import mark_safe
from migdal.models import Entry
@@
-21,6
+21,7
@@
class RegistrationForm(ContactForm):
save_as_tag = '2017'
conference_name = u'CopyCamp 2017'
save_as_tag = '2017'
conference_name = u'CopyCamp 2017'
+ notify_on_register = False
form_title = _('Registration')
admin_list = ['first_name', 'last_name', 'organization']
form_title = _('Registration')
admin_list = ['first_name', 'last_name', 'organization']
@@
-36,8
+37,8
@@
class RegistrationForm(ContactForm):
label=_("I'm planning to show up on"),
choices=[
('both', _('Both days of the conference')),
label=_("I'm planning to show up on"),
choices=[
('both', _('Both days of the conference')),
- ('only-2
7th', _('October 27
th only')),
- ('only-2
8th', _('October 28
th only')),
+ ('only-2
8th', _('September 28
th only')),
+ ('only-2
9th', _('September 29
th only')),
], widget=forms.RadioSelect())
# ankieta
], widget=forms.RadioSelect())
# ankieta
@@
-148,7
+149,7
@@
class RegistrationForm(ContactForm):
def survey_fields(self):
return [self[name] for name in (
def survey_fields(self):
return [self[name] for name in (
- 'times_attended', 'age',
'distance',
+ 'times_attended', 'age',
'areas', 'areas_other', 'source', 'source_other', 'motivation', 'motivation_other')]
def agreement_fields(self):
'areas', 'areas_other', 'source', 'source_other', 'motivation', 'motivation_other')]
def agreement_fields(self):
@@
-179,7
+180,6
@@
tracks = (
class RegisterSpeaker(RegistrationForm):
class RegisterSpeaker(RegistrationForm):
- from django.utils.translation import ugettext_noop as _
form_tag = 'register-speaker'
save_as_tag = '2017-speaker'
form_title = _('Open call for presentations')
form_tag = 'register-speaker'
save_as_tag = '2017-speaker'
form_title = _('Open call for presentations')