Files
@ 073174e617b1
Branch filter:
Location: symposion_app/symposion/speakers/forms.py - annotation
073174e617b1
832 B
text/x-python
Adds bcc to emails sent from server
a95825ede8d4 2b7f5546a094 2b7f5546a094 2b7f5546a094 2b7f5546a094 2b7f5546a094 2b7f5546a094 36ab6d599ffc 2b7f5546a094 2b7f5546a094 2b7f5546a094 2b7f5546a094 2b7f5546a094 aa56ac00c36a 2b7f5546a094 aa56ac00c36a aa56ac00c36a c7ce7fe02068 217f2f32c169 217f2f32c169 217f2f32c169 c0e9b90476d3 2b7f5546a094 c7ce7fe02068 c0e9b90476d3 c0e9b90476d3 c0e9b90476d3 c0e9b90476d3 c7ce7fe02068 c7ce7fe02068 c7ce7fe02068 c7ce7fe02068 c7ce7fe02068 | from __future__ import unicode_literals
from django import forms
from symposion.speakers.models import Speaker
class SpeakerForm(forms.ModelForm):
class Meta:
model = Speaker
fields = [
"name",
"biography",
"experience",
"photo",
"telephone",
"homepage",
"twitter_username",
"accessibility",
"travel_assistance",
"accommodation_assistance",
"agreement",
]
def __init__(self, *a, **k):
super(SpeakerForm, self).__init__(*a, **k)
self.fields['agreement'].required = True
def clean_twitter_username(self):
value = self.cleaned_data["twitter_username"]
if value.startswith("@"):
value = value[1:]
return value
|