class Meta: model = TrainingRequest fields = ( 'group_name', 'personal', 'family', 'email', 'github', 'occupation', 'occupation_other', 'affiliation', 'location', 'country', 'underresourced', 'domains', 'domains_other', 'underrepresented', 'nonprofit_teaching_experience', 'previous_involvement', 'previous_training', 'previous_training_other', 'previous_training_explanation', 'previous_experience', 'previous_experience_other', 'previous_experience_explanation', 'programming_language_usage_frequency', 'teaching_frequency_expectation', 'teaching_frequency_expectation_other', 'max_travelling_frequency', 'max_travelling_frequency_other', 'reason', 'user_notes', 'data_privacy_agreement', 'code_of_conduct_agreement', 'training_completion_agreement', 'workshop_teaching_agreement', ) widgets = { 'occupation': RadioSelectWithOther('occupation_other'), 'domains': CheckboxSelectMultipleWithOthers('domains_other'), 'gender': forms.RadioSelect(), 'previous_involvement': forms.CheckboxSelectMultiple(), 'previous_training': RadioSelectWithOther('previous_training_other'), 'previous_experience': RadioSelectWithOther('previous_experience_other'), 'programming_language_usage_frequency': forms.RadioSelect(), 'teaching_frequency_expectation': RadioSelectWithOther('teaching_frequency_expectation_other'), 'max_travelling_frequency': RadioSelectWithOther('max_travelling_frequency_other'), 'country': ListSelect2(), }
class Meta: model = ProfileUpdateRequest exclude = ('active', 'created_at', 'last_updated_at') widgets = { 'occupation': RadioSelectWithOther('occupation_other'), 'gender': RadioSelectWithOther('gender_other'), 'domains': CheckboxSelectMultipleWithOthers('domains_other'), 'lessons': CheckboxSelectMultipleWithOthers('lessons_other'), 'country': ListSelect2(), }
class Meta(SWCEventRequestNoCaptchaForm.Meta): exclude = ('created_at', 'last_updated_at', 'assigned_to', 'admin_fee_payment', 'attendee_computing_levels', ) widgets = { 'event': Select2Widget, 'approx_attendees': forms.RadioSelect(), 'attendee_domains': CheckboxSelectMultipleWithOthers( 'attendee_domains_other'), 'data_types': RadioSelectWithOther('data_types_other'), 'attendee_academic_levels': forms.CheckboxSelectMultiple(), 'attendee_data_analysis_level': forms.CheckboxSelectMultiple(), 'travel_reimbursement': RadioSelectWithOther( 'travel_reimbursement_other'), }
class Meta: model = Person fields = [ "personal", "middle", "family", "email", "secondary_email", "gender", "gender_other", "country", "airport", "github", "twitter", "url", "username", "affiliation", "domains", "lessons", "languages", "occupation", "orcid", ] readonly_fields = ( "username", "github", ) widgets = { "gender": RadioSelectWithOther("gender_other"), "domains": forms.CheckboxSelectMultiple(), "lessons": forms.CheckboxSelectMultiple(), "airport": Select2Widget, }
class Meta: model = EventRequest exclude = ( 'created_at', 'last_updated_at', 'assigned_to', 'data_types', 'data_types_other', 'attendee_data_analysis_level', 'fee_waiver_request', ) widgets = { 'event': Select2(), 'approx_attendees': forms.RadioSelect(), 'attendee_domains': CheckboxSelectMultipleWithOthers('attendee_domains_other'), 'attendee_academic_levels': forms.CheckboxSelectMultiple(), 'attendee_computing_levels': forms.CheckboxSelectMultiple(), 'travel_reimbursement': RadioSelectWithOther('travel_reimbursement_other'), 'admin_fee_payment': forms.RadioSelect(), 'country': ListSelect2(), }
class Meta: model = WorkshopRequest fields = ( "personal", "family", "email", "institution", "institution_name", "institution_department", "location", "country", "conference_details", "preferred_dates", "language", "number_attendees", "domains", "domains_other", "academic_levels", "computing_levels", "audience_description", "requested_workshop_types", "organization_type", "self_organized_github", "centrally_organized_fee", "waiver_circumstances", "travel_expences_management", "travel_expences_management_other", "travel_expences_agreement", "user_notes", "data_privacy_agreement", "code_of_conduct_agreement", "host_responsibilities", ) widgets = { 'country': ListSelect2(), 'language': ListSelect2(), 'number_attendees': forms.RadioSelect(), 'academic_levels': forms.CheckboxSelectMultiple(), 'computing_levels': forms.CheckboxSelectMultiple(), 'requested_workshop_types': forms.CheckboxSelectMultiple(), 'organization_type': forms.RadioSelect(), 'centrally_organized_fee': forms.RadioSelect(), 'travel_expences_management': RadioSelectWithOther('travel_expences_management_other'), }
class Meta: model = Person fields = [ 'personal', 'middle', 'family', 'email', 'secondary_email', 'gender', 'gender_other', 'may_contact', 'publish_profile', 'lesson_publication_consent', 'country', 'airport', 'github', 'twitter', 'url', 'username', 'affiliation', 'domains', 'lessons', 'languages', 'occupation', 'orcid', ] readonly_fields = ( 'username', 'github', ) widgets = { 'gender': RadioSelectWithOther('gender_other'), 'domains': forms.CheckboxSelectMultiple(), 'lessons': forms.CheckboxSelectMultiple(), 'airport': Select2Widget, }
class Meta: model = Person # don't display the 'password', 'user_permissions', # 'groups' or 'is_superuser' fields # + reorder fields fields = [ "username", "personal", "middle", "family", "may_contact", "publish_profile", "lesson_publication_consent", "data_privacy_agreement", "email", "secondary_email", "gender", "gender_other", "country", "airport", "affiliation", "github", "twitter", "url", "occupation", "orcid", "user_notes", "lessons", "domains", "languages", ] widgets = { "country": Select2Widget, "gender": RadioSelectWithOther("gender_other"), }
class Meta: model = TrainingRequest fields = ( "review_process", "group_name", "personal", "family", "email", "secondary_email", "github", "occupation", "occupation_other", "affiliation", "location", "country", "underresourced", "domains", "domains_other", "underrepresented", "underrepresented_details", "nonprofit_teaching_experience", "previous_involvement", "previous_training", "previous_training_other", "previous_training_explanation", "previous_experience", "previous_experience_other", "previous_experience_explanation", "programming_language_usage_frequency", "teaching_frequency_expectation", "teaching_frequency_expectation_other", "max_travelling_frequency", "max_travelling_frequency_other", "reason", "user_notes", "data_privacy_agreement", "code_of_conduct_agreement", "training_completion_agreement", "workshop_teaching_agreement", ) widgets = { "review_process": forms.RadioSelect(), "occupation": RadioSelectWithOther("occupation_other"), "domains": CheckboxSelectMultipleWithOthers("domains_other"), "underrepresented": forms.RadioSelect(), "previous_involvement": forms.CheckboxSelectMultiple(), "previous_training": RadioSelectWithOther("previous_training_other"), "previous_experience": RadioSelectWithOther("previous_experience_other"), "programming_language_usage_frequency": forms.RadioSelect(), "teaching_frequency_expectation": RadioSelectWithOther("teaching_frequency_expectation_other"), "max_travelling_frequency": RadioSelectWithOther("max_travelling_frequency_other"), "country": Select2Widget, }