len(r)
0
Cheers,
AT
On Thu, Apr 5, 2012 at 6:07 AM, Thomas Guettler wrote:
> I was surprised, that comparing querysets does not work:
>
> {{{
> from django.contrib.auth.models import User
> user_id=User.objects.all().**order_by('id')[0].id
>
> if not User.objects.fi
I was surprised, that comparing querysets does not work:
{{{
from django.contrib.auth.models import User
user_id=User.objects.all().order_by('id')[0].id
if not User.objects.filter(id=user_id)==User.objects.filter(id=user_id):
print 'Not equal? I think they s
2 matches
Mail list logo