Пример #1
0
 class Meta:
   model = OrgAppRecord
   css_prefix = 'org-app-record'
   exclude = ['main_admin', 'backup_admin', 'status', 'user', 'survey',
              'created', 'modified', 'program', 'agreed_to_admin_agreement']
   widgets = forms.choiceWidgets(model,
       ['license'])
Пример #2
0
 class Meta:
     model = GCIProfile
     css_prefix = 'gci_profile'
     exclude = PREFILL_PROFILE_EXCLUDE
     widgets = forms.choiceWidgets(model, [
         'res_country', 'ship_country', 'tshirt_style', 'tshirt_size',
         'gender'
     ])
Пример #3
0
 class Meta:
   model = GSoCProfile
   css_prefix = 'gsoc_profile'
   exclude = ['link_id', 'user', 'scope', 'mentor_for', 'org_admin_for',
              'student_info', 'agreed_to_tos_on', 'scope_path', 'status',
              'name_on_documents', 'agreed_to_tos']
   widgets = forms.choiceWidgets(GSoCProfile,
       ['res_country', 'ship_country',
        'tshirt_style', 'tshirt_size', 'gender'])
Пример #4
0
 class Meta:
     model = GSoCOrganization
     css_prefix = 'gsoc_org_page'
     exclude = [
         'status', 'scope', 'scope_path', 'founder', 'founder', 'slots',
         'slots_calculated', 'nr_applications', 'nr_mentors',
         'scoring_disabled', 'link_id'
     ]
     widgets = forms.choiceWidgets(GSoCOrganization,
                                   ['contact_country', 'shipping_country'])
Пример #5
0
 class Meta:
     model = GCIStudentInfo
     css_prefix = 'student_info'
     exclude = [
         'number_of_completed_tasks', 'task_closed', 'parental_form_mail',
         'consent_form', 'consent_form_verified', 'consent_form_two',
         'student_id_form', 'major', 'student_id_form_verified', 'degree',
         'school', 'school_type', 'program', 'is_winner', 'winner_for'
     ]
     widgets = forms.choiceWidgets(
         model, ['school_country', 'school_type', 'degree'])
Пример #6
0
 class Meta:
     model = GSoCGradingRecord
     css_prefix = 'gsoc_grading_record'
     fields = ['grade_decision', 'locked']
     widgets = forms.choiceWidgets(GSoCGradingRecord, ['grade_decision'])
Пример #7
0
 class Meta:
   model = GSoCStudentInfo
   css_prefix = 'student_info'
   exclude = ['school', 'school_type', 'number_of_proposals']
   widgets = forms.choiceWidgets(GSoCStudentInfo,
       ['school_country', 'school_type', 'degree'])