Re: models.Q raising exception
On Thu, Dec 1, 2011 at 12:58 PM, Martin Tiršelwrote: > 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
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 ...