Q:

Getting values from a queryset getting TypeError: 'method' object is not subscriptable

I know this is a very simple question but I am hitting TypeError: 'method' object is not subscriptable on everything I am trying.  I need to get the ratings  for the item.  How do I get it 
>>> for item in order_items:
...     if item.reviewed_items.exists():
...             print( item.reviewed_items.values())
... 
<QuerySet [{'
id': 1, 
'review_from_id': 5, 
'review_for_id': 1,
'ratings': '8'}]>
>>> 

A:

Try  dict comprehension as,
for item in order_items:
    if item.reviewed_items.exists():
        print({data['id']: data['ratings'] for data in list(item.reviewed_items.values())})

UPDATE
Use values_list() method as,
for item in order_items:
    if item.reviewed_items.exists():
        print(item.reviewed_items.values_list('ratings', flat=True))

