Cómo convertir un Queryset en una cadena JSON
# Simply wrap the queryset in a list
data = list(queryset.values())
# Hint: need to use .values() not .all()
Terror12
# Simply wrap the queryset in a list
data = list(queryset.values())
# Hint: need to use .values() not .all()