2017-11-27 mongodb django models mongoengine not in filter Django: NOT IN -> exclude(a__in=b_list)NOT IN: nin 123456789101112ne – not equal tolt – less thanlte – less than or equal togt – greater thangte – greater than or equal tonot – negate a standard check, may be used before other operators (e.g. Q(age__not__mod=5))in – value is in list (a list of values should be provided)nin – value is not in list (a list of values should be provided)mod – value % x == y, where x and y are two provided valuesall – every item in list of values provided is in arraysize – the size of the array isexists – value for field exists Offical Docs: Querying the database Newer python from __future__ import absolute_import Older check class has attribute