# Simply wrap the queryset in a list data = list(queryset.values()) # Hint: need to use .values() not .all()