Re: Queryset evaluation not returning the same values as a the generated sql

2010-03-18 Thread HRCerqueira
Ignore this, I'm inhereting some legacy code, and just found out that the tags are just "added" later in the code, and I was executing this query in a function connected to the post_save signal of the question. Sorry all, this was a stupid mistake. On 18 Mar, 20:36, HRCerqueira wrote: > Hello guy

Queryset evaluation not returning the same values as a the generated sql

2010-03-18 Thread HRCerqueira
Hello guys, I have the following queryset: subscribers = User.objects.values('email', 'username').filter( Q(subscription_settings__new_question='i') | Q(subscription_settings__new_question_watched_tags='i', marked_tags__id__in=question.tags.values('id'),