Skip to content
Snippets Groups Projects
Commit 92fb6828 authored by Felix Schäfer's avatar Felix Schäfer :construction_worker:
Browse files

Add a public registration question to products

parent a21f148b
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-07 19:01+0100\n"
"POT-Creation-Date: 2019-06-13 23:47+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: Felix Schäfer\n"
"Language-Team: \n"
......@@ -10,3 +10,10 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.2.3\n"
"X-Poedit-Basepath: ../../..\n"
"X-Poedit-SearchPath-0: .\n"
#: signals.py:11
msgid "Public registration"
msgstr "Öffentliche Anmeldung"
......@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-07 19:01+0100\n"
"POT-Creation-Date: 2019-06-13 23:49+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: Felix Schäfer\n"
"Language-Team: \n"
......@@ -10,3 +10,10 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.2.3\n"
"X-Poedit-Basepath: ../../..\n"
"X-Poedit-SearchPath-0: .\n"
#: signals.py:11
msgid "Public registration"
msgstr "Öffentliche Anmeldung"
# Register your receivers here
from django import forms
from django.dispatch import receiver
from django.utils.translation import ugettext_lazy as _
from i18nfield.strings import LazyI18nString
from pretix.presale.signals import question_form_fields
@receiver(question_form_fields, dispatch_uid="pretix_public_registration_question")
def add_public_registration_question(sender, **kwargs):
return {'public_registration': forms.CharField(
label=_('Public registration'),
required=False,
help_text=sender.settings.get('public_registration_field_help_text', as_type=LazyI18nString),
widget=forms.CheckboxInput(),
)}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment