0👍
You forgot to put a bracket,
-->> ( <<-- (Q(src__lte=4) & Q(src__startswith='2')) | (Q(src__gt=4) & ~Q(src__istartswith='713') & ~Q(src__istartswith='281')))
either you have to remove the last one.
Or you didn’t paste the entire line..
You may want to try this:
(Q(src__gt=4) & !(Q(src__startswith=u'713') | Q(src__startswith=u'281'))
What type of data is your ‘src’? Integer or String?
- [Answered ]-South: how to ignore a changed model while creating a migration for an app
- [Answered ]-Django app – deploy using UWSGI or Phusion Passenger
- [Answered ]-Download Excel file
- [Answered ]-Signature error message when uploading file with fineuploader and django into S3
- [Answered ]-Get gmail email using django allAuth
Source:stackexchange.com