[Fixed]-'Questions ' object is not iterable Django

28👍

Initial expects a dictionary of values, so you just need to change your queryset like this:

q = Question.objects.filter(user=request.user).values()

See the docs about values()

Leave a comment