Django values_list vs values
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
You must login to ask question.
The
values()
method returns a QuerySet containing dictionaries:<QuerySet [{'comment_id': 1}, {'comment_id': 2}]>
The
values_list()
method returns a QuerySet containing tuples:<QuerySet [(1,), (2,)]>