Re: Alternatives to using __contains?

2018-10-10 Thread megaman
actually like the Django syntax. It's very easy to follow. You can > also use the __ for related fields. > Questions.objects.filter(something__related_something__related_something_else__lower__contains="what") > > > > > -Original Message----- > From:

Re: Alternatives to using __contains?

2018-10-10 Thread megaman
ESSAGE- > Hash: SHA512 > > Hi, > > On Tue, Oct 09, 2018 at 08:03:27AM -0700, megaman wrote: > > I’m pretty new to Django. I have just learnt that could filter a > > query set this way: > > > > Questions.objects.filter(question_text__contains=‘what’) >

Alternatives to using __contains?

2018-10-09 Thread megaman
I’m pretty new to Django. I have just learnt that could filter a query set this way: Questions.objects.filter(question_text__contains=‘what’) This kind of scares me a little because the filter “contains” is actually part of the field name. And I guess there are other operators appended to a fi