[Answer]-'str' object has no attribute 'get' (Django)

1👍

You need to be passing in a dictionary to your HardwareForm, not a string.

Change in your views.py

form = HardwareForm('request.POST')

to:

form = HardwareForm(request.POST)
👤Tareq

Leave a comment