I have a Django site that has an admin site associated with it. One of the models that is registered with the admin is called Article
, and it has a field called content
that is required. If the user leaves this field blank, it will show them a validation error saying that the field is required.
However, if they get this validation error and then click the save button again, they will be given a csrf_verification failed error. I have checked, and the csrf token is being passed, and a different csrf token is passed when the user makes the request that generates the validation error from when the user makes the request that generates the csrf_token error.
Any ideas why the csrf_token error is happening? Is this normal Django behavior, or is it specific to my site? What are the next steps I should take to resolve this issue?