Okay, I am having a problem and I don't know why. I am doing an objects.filter on a model called Asset it looks like this asset = Asset.objects.filter(process_stage = state or 'imaging') this should return any Asset that is equal to the state variable or 'imaging' but it is just returning the ones that are equal to state. I have testing this in the ipython.py command line program and it works there but not in my script. testing it in ipython: from hammer.models import * asset = Asset.objects.filter(process_stage = state or 'imaging') asset out: [<Asset:321562>, <Asset:321654>]
321562 is equal to state 321654 is equal to 'imaging' if i do a print right under Asset.objects.filter(process_stage = state or 'imaging') i get [<Asset:321562>] WHY? SORRY FOR ANY GRAMMAR THAT IS WRONG. If you can help thinks if not thinks for looking. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---