def __init__(self, *args, **kwargs):
    super(ImageForm, self).__init__(*args, **kwargs)
    self.fields['architecture'] = forms.ChoiceField(required=True, choices=[('amd64', 'amd64'), ('i386', 'i386')])
    self.fields['format'] = forms.ChoiceField(required=True, widget=forms.Select(attrs={'onChange': 'select(this);'}), choices=[('OpenStack', 'OpenStack'), ('Azure', 'Azure'), ('AWS', 'AWS'), ('GCE', 'GCE'), ('Libvirt', 'Libvirt'), ('VirtualBox', 'VirtualBox'), ('Docker', 'Docker')])
def __init__(self, *args, **kwargs):
    super(ImageForm, self).__init__(*args, **kwargs)
    self.fields['architecture'] = forms.ChoiceField(required=True, choices=[('amd64', 'amd64'), ('i386', 'i386')])
    self.fields['format'] = forms.ChoiceField(required=True, widget=forms.Select(attrs={'onChange': 'select(this);'}), choices=[('OpenStack', 'OpenStack'), ('Azure', 'Azure'), ('AWS', 'AWS'), ('GCE', 'GCE'), ('Libvirt', 'Libvirt'), ('VirtualBox', 'VirtualBox'), ('Docker', 'Docker')])