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)
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)