def __init__(self, attrs=None, types_to_set=[], supertype=None, show_production_type_field=False): self.id_widget = forms.HiddenInput() self.title_widget = forms.TextInput() self.byline_widget = BylineWidget() self.types_to_set = types_to_set self.supertype = supertype self.production_type_widget = ProductionTypeChoiceField( queryset=ProductionType.objects.all()).widget self.show_production_type_field = show_production_type_field super(ProductionWidget, self).__init__(attrs=attrs)