X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/74da95c9c7e8ed4412e07d4385f442aff2605a3e..bf852b7e6f2828e0ef53440b69247e10b782e8cd:/prawokultury/contact_forms.py
diff --git a/prawokultury/contact_forms.py b/prawokultury/contact_forms.py
index c977a6a..061062d 100644
--- a/prawokultury/contact_forms.py
+++ b/prawokultury/contact_forms.py
@@ -40,19 +40,15 @@ class RegistrationForm(ContactForm):
u'to publishing my image.')),
required=False
)
+ agree_terms = forms.BooleanField(
+ label=mark_safe_lazy(
+ _(u'I accept CopyCamp Terms and Conditions.'))
+ )
def __init__(self, *args, **kwargs):
super(RegistrationForm, self).__init__(*args, **kwargs)
self.started = getattr(settings, 'REGISTRATION_STARTED', False)
self.limit_reached = Contact.objects.filter(form_tag=self.save_as_tag).count() >= settings.REGISTRATION_LIMIT
- try:
- url = Entry.objects.get(slug_pl='regulamin').get_absolute_url()
- self.fields['agree_toc'] = forms.BooleanField(
- required=True,
- label=mark_safe(_('I accept Terms and Conditions of CopyCamp') % url)
- )
- except Entry.DoesNotExist:
- pass
def main_fields(self):
return [self[name] for name in (
@@ -70,7 +66,6 @@ class RegisterSpeaker(RegistrationForm):
save_as_tag = '2019-speaker'
form_title = _('Open call for presentations')
notify_on_register = False
- mailing_field = 'agree_mailing'
bio = forms.CharField(label=mark_safe_lazy(
_('Short biographical note in Polish (max. 500 characters)')),
@@ -97,11 +92,6 @@ class RegisterSpeaker(RegistrationForm):
agree_data = None
- agree_terms = forms.BooleanField(
- label=mark_safe_lazy(
- _(u'I accept CopyCamp Terms and Conditions.'))
- )
-
def __init__(self, *args, **kw):
super(RegisterSpeaker, self).__init__(*args, **kw)
self.started = getattr(settings, 'REGISTRATION_SPEAKER_STARTED', False)
@@ -118,10 +108,7 @@ class RegisterSpeaker(RegistrationForm):
'presentation_title',
'presentation_title_en',
'presentation_summary',
- # 'presentation_post_conference_publication',
- 'agree_mailing',
- # 'agree_data',
'agree_license',
'agree_terms',
]