コード例 #1
0
ファイル: forms.py プロジェクト: raimundojimenez/scirius
 def __init__(self, *args, **kwargs):
     super(CategoryTransformForm, self).__init__(*args, **kwargs)
     self.fields['action'].choices = Category.get_transformation_choices(
         key=Transformation.ACTION)
     self.fields['lateral'].choices = Category.get_transformation_choices(
         key=Transformation.LATERAL)
     self.fields['target'].choices = Category.get_transformation_choices(
         key=Transformation.TARGET)
コード例 #2
0
ファイル: forms.py プロジェクト: StamusNetworks/scirius
 def __init__(self, *args, **kwargs):
     super(CategoryTransformForm, self).__init__(*args, **kwargs)
     self.fields['action'].choices = Category.get_transformation_choices(key=Transformation.ACTION)
     self.fields['lateral'].choices = Category.get_transformation_choices(key=Transformation.LATERAL)
     self.fields['target'].choices = Category.get_transformation_choices(key=Transformation.TARGET)