Re: models.Q raising exception

2011-12-01 Thread Ian Clelland
On Thu, Dec 1, 2011 at 12:58 PM, Martin Tiršel wrote: > Hello, > > why this is not working? > > from django.db import models > > ... >GameProfile.objects.get( >models.Q(nick=nick) | models.Q(user=self.user), >world=self.world, >

models.Q raising exception

2011-12-01 Thread Martin Tiršel
Hello, why this is not working? from django.db import models ... GameProfile.objects.get( models.Q(nick=nick) | models.Q(user=self.user), world=self.world, ) but this is working? from django.db.models import Q ...