[Django]-Django 'instancemethod' object has no attribute '__getitem__'

10👍

Change

list_categories = request.POST.getlist['categories']

for

list_categories = request.POST.getlist('categories')

getlist is a method, so the syntax requires parenthesis.

Leave a comment