[Fixed]-Django forms – Post

1👍

You’re getting the ID of the related object.

Since you say you’re using a form, you shouldn’t be accessing data via request.POST, but by form.cleaned_data, which will do the work to translate that into the actual object.

Leave a comment