コード例 #1
0
ファイル: forms.py プロジェクト: icereval/osf.io
 def __init__(self, *args, **kwargs):
     toplevel_choices = get_toplevel_subjects()
     nodelicense_choices = get_nodelicense_choices()
     defaultlicense_choices = get_defaultlicense_choices()
     super(PreprintProviderForm, self).__init__(*args, **kwargs)
     self.fields['toplevel_subjects'].choices = toplevel_choices
     self.fields['licenses_acceptable'].choices = nodelicense_choices
     self.fields['default_license'].choices = defaultlicense_choices
コード例 #2
0
ファイル: forms.py プロジェクト: fugokidi/osf.io
 def __init__(self, *args, **kwargs):
     toplevel_choices = get_toplevel_subjects()
     nodelicense_choices = get_nodelicense_choices()
     defaultlicense_choices = get_defaultlicense_choices()
     super(PreprintProviderForm, self).__init__(*args, **kwargs)
     self.fields['toplevel_subjects'].choices = toplevel_choices
     self.fields['licenses_acceptable'].choices = nodelicense_choices
     self.fields['default_license'].choices = defaultlicense_choices