- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
class ClassifierChoiceForm(forms.ModelChoiceField):
def __init__(self, dict, empty_label=u"---------", cache_choices=False,
required=True, widget=forms.Select, label=None, initial=None, help_text=None, to_field_name=None, with_classes=False):
try:
...
# до хуя всего
...
except Exception, e:
super(forms.ModelChoiceField, self).__init__()