I have a choice field on a form I am trying to display all the cars in a drop down list that are the same color, the color chosen is defined by a user input field
class car(forms.Form,email):
cars = forms.ModelChoiceField(
empty_label = "Current Cars",
queryset = Cars.objects.order_by('name').filter(color=color),
widget = Select(attrs={'class': 'span6 small-margin-top small-margin-bottom'}),
required=True
)