Re: objects.filter

2018-11-30 Thread Aqilah Maulidya Sidik
Hi todor, Thanks very much you save my day... Regards On Sat, 1 Dec 2018, 12:18 Todor Velichkov, wrote: > It would be > > logbook_noc.objects.filter(StatusProgress__in = ['1 Pending', '2 On > Progress']) > > You can read more about this at Making queries >

Re: objects.filter

2018-11-30 Thread Todor Velichkov
It would be logbook_noc.objects.filter(StatusProgress__in = ['1 Pending', '2 On Progress']) You can read more about this at Making queries and please take a look at Coding styles

Re: objects.filter (calling a method) ?

2009-03-17 Thread arbi
Ok thanks, But it would be great to have such things implemented in Django! On 17 mar, 22:13, Alex Gaynor wrote: > On Tue, Mar 17, 2009 at 5:06 PM, arbi wrote: > > > Hi, > > > I would like to do something like that, but I don't know if I can (I > > didn't find it on djangoproject.com) : > > > H

Re: objects.filter (calling a method) ?

2009-03-17 Thread Alex Gaynor
On Tue, Mar 17, 2009 at 5:06 PM, arbi wrote: > > Hi, > > I would like to do something like that, but I don't know if I can (I > didn't find it on djangoproject.com) : > > Here is myClass : > > myClass: > def __init__(self) : > ... > > def similiarity_to(other_object) : > re

Re: Objects.filter only on minutes range

2007-09-09 Thread Doug B
I was curious, so I took a look at how django does the year/day/month selects. They use a backend specific lookup. This is how you could do it using postgres. em.LoggedEvent.objects.filter().extra(where=['extract(MINUTE from event_loggedevent.when) < 20']) SQLite doesn't support extract, so dj

Re: objects.filter

2007-07-17 Thread [EMAIL PROTECTED]
thinks man it worked. --~--~-~--~~~---~--~~ 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 PRO

Re: objects.filter

2007-07-16 Thread Tim Chase
> 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 returnin