[Fixed]-A form that changes email and password

1👍

Here :

return render(
   request, 
  'freelancestudent/edit_account_details.html', {
            {'form': account_form}
        })

You have two sets of {}. The inner one defines a dict, the outer one defines a set, so it’s equivalent to:

context = {'form': account_form}
whatever = set(context)

Now sets needs their values to be hashable (just like dict keys), and a dict is not hashable, hence your error message.

But anyway: render expects a dict, not a set, so what you want is:

return render(
   request, 
  'freelancestudent/edit_account_details.html', 
  {'form': account_form}
  )

Leave a comment