Re: invalid literal for int() with base 10: '' using FormSet with File Upload

2016-01-12 Thread Luis Zárate
What is the value of pk in study_form_set = DiagnosticStudyFormSet(request.POST, request.FILES, prefix='studies', queryset=DiagnosticStudy.objects.filter(diagnostic__id=pk)). ? Is pk an int? try print type(pk) El martes, 12 de enero de 2016, Néstor Boscán escribió: > Hi

invalid literal for int() with base 10: '' using FormSet with File Upload

2016-01-12 Thread Néstor Boscán
Hi Django Forum I'm working on a web application that has a page with form set that requires file upload. When I upload the files I get: Django Version:1.9.1Exception Type:ValueErrorException Value: invalid literal for int() with base 10: '' Exception