[Answer]-Django FormWizard Filtering ChoiceField

1👍

consummer = ServicesActivated.objects.filter(status=1)
consummer = consummer.exclude(name__exact=data['provider'])
form = ConsummerForm(instance=consummer)

You are passing a QuerySet to form instead of a model instance:
https://docs.djangoproject.com/en/1.5/topics/forms/modelforms/

👤Spout

Leave a comment