Beispiel #1
0
 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)
Beispiel #2
0
 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)