Files
@ e726ff21a8ff
Branch filter:
Location: symposion_app/vendor/symposion/proposals/forms.py - annotation
e726ff21a8ff
1.2 KiB
text/x-python
Create regidesk app
Shows summary of all attendees with a paid ticket, including
boarding_pass status.
Currently, regidesk allows staff with the requisite permission the
ability to view the checkin status of attendees, and email the user
their boarding pass email.
Included is a view for the user to retrieve their own QR code (in case
they got the plain-text version of the email, they can use this to
download an image to their phone for faster checkin)
Shows summary of all attendees with a paid ticket, including
boarding_pass status.
Currently, regidesk allows staff with the requisite permission the
ability to view the checkin status of attendees, and email the user
their boarding pass email.
Included is a view for the user to retrieve their own QR code (in case
they got the plain-text version of the email, they can use this to
download an image to their phone for faster checkin)
7596922f4d68 7596922f4d68 3207621058b8 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 36ab6d599ffc fb5eaea880cb fb5eaea880cb 7596922f4d68 3207621058b8 7596922f4d68 36ab6d599ffc 7596922f4d68 7596922f4d68 7596922f4d68 36ab6d599ffc 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 3207621058b8 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 36ab6d599ffc fb5eaea880cb fb5eaea880cb 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 7596922f4d68 | from django import forms
from django.db.models import Q
from django.utils.translation import ugettext_lazy as _
from symposion.proposals.models import SupportingDocument
# @@@ generic proposal form
class AddSpeakerForm(forms.Form):
required_css_class = 'label-required'
email = forms.EmailField(
label=_("Email address of new speaker (use their email address, not yours)")
)
def __init__(self, *args, **kwargs):
self.proposal = kwargs.pop("proposal")
super(AddSpeakerForm, self).__init__(*args, **kwargs)
def clean_email(self):
value = self.cleaned_data["email"]
exists = self.proposal.additional_speakers.filter(
Q(user=None, invite_email=value) |
Q(user__email=value)
).exists()
if exists:
raise forms.ValidationError(
_("This email address has already been invited to your talk proposal")
)
return value
class SupportingDocumentCreateForm(forms.ModelForm):
required_css_class = 'label-required'
class Meta:
model = SupportingDocument
fields = [
"file",
"description",
]
|