Negate a Q object in Django
Use ~
operator:
complex_condition = ~Q(....)
According to Complex lookups with Q objects:
Q
objects can be negated using the ~ operator, allowing for combined lookups that combine both a normal query and a negated (NOT) query