3👍
✅
You’re always passing back an unbound instance of the form, try this:
view.py
if request.method == 'POST':
form = ProgrammeForm(user=request.user, data=request.POST)
if form.is_valid():
form.save()
else: ##this is the changge
form = ProgrammeForm(request.user)
return render_to_response('form.html', {'form': form })
👤Zach
Source:stackexchange.com