Django ORM values() and select_related() raise TypeError

Published: 14/01/2019
Django ORM values() and select_related() raise TypeError
Source: STACKOVERFLOW.COM

In my django project i have to do an ORM query like this: ordered = t_threads.objects.values('thread_stag').filter(thread_status='DEAD',id_test__test_main__descr__contains= 'Hello').distinct().select_related().order_by('id')[1:10] i need to group result for value 'thread_stag' filtered for status and test description, having all values from related tables, but when i execute the above qu

Read more
Related news
Comment
FACEBOOK