Hi I have two models named A and B. I want to get the ids from my model B and compare it with the id in model A (Foreign Key relation). I used the following method to get the ids
a = B.objects.filter(b_id=object.id).values_list('id')
But a printed a result of [(82L,), (83L,), (84L,), (85L,)]
instead of [82, 83 ,]
etc.
How can I get a flat list without the appended L
s?