2👍
✅
It should be:
message = request.POST.getlist("message")
In an HttpRequest object, the GET and POST attributes are instances of django.http.QueryDict
. getlist
is method of QueryDict and not HttpRequest
.
Source:stackexchange.com