django - int() argument must be a string or a number, not 'QueryDict' -
django - int() argument must be a string or a number, not 'QueryDict' - i'm rendering out 3 multiple select boxes on form. i'm filtering each box out have seperate type of day. when submit form error. int() argument must string or number, not 'querydict' what must save form? this i'm doing on forms.py file different filtering each select box. class contractform(forms.modelform): def __init__(self, project_id, *args, **kwargs): super(contractform, self).__init__(*args, **kwargs) self.fields['shoot_day'].queryset = day.objects.filter(type=shoot, project__id=project_id) self.fields['travel_day'].queryset = day.objects.filter(type=travel, project__id=project_id) self.fields['additional_day'].queryset = day.objects.filter(type=additional, project__id=project_id) i'm getting project_id so: def editcontract(request, contract_id, slug): context_dict = {} contract = get_...