[Answered ]-Receiving an Error when a Form is submitted related to cleaned_data

1👍

You are constructing a new form, but that does not make much sense. Once your orignal form is validated, you can save that form, so:

def home(request):
    if request.method == 'POST':
        form = MessageForm(request.POST)
        if form.is_valid():
            form.instance.ip = request.META.get('REMOTE_ADDR')
            form.save()
            messages.success(request,'Your Message has been sent, Thank you!')
            return redirect('base:home')
    # …

Leave a comment