I am populating my drop down box with values from my model, I have five values in my model, I only want to show three of these values in this particular instance how would I achieve this.
forms.py
class namesForm(forms.Form):
names = forms.ModelChoiceField(
queryset=Names.objects.order_by('name').exclude(name='Josh','Tom'),
label = "Name:",
widget = Select(attrs={'class': 'span6 small-margin-top small-margin-bottom'}),
empty_label = "Select a Name",
required=True
)