

def __init__(self, *args, **kwargs):
    super(CreateImageForm, self).__init__(*args, **kwargs)
    if (not settings.HORIZON_IMAGES_ALLOW_UPLOAD):
        self.fields['image_file'].widget = HiddenInput()
    self.fields['disk_format'].choices = IMAGE_FORMAT_CHOICES

dataset/ETHPy150Open Havate/havate-openstack/proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/dashboards/project/images_and_snapshots/images/forms.py CreateImageForm.__init__/original