Postgre SQL ignore the filtering condition if the value is null
问题 I have the following three variables passed to the query A,B and C . A, B and C can take any values including null. When I run the below queryset, it should ignore the condition if the value in A,B or C is null queryset = User.objects.values().filter(A_name=A, B_name=B, C_name =C) For example, if C value passed in null then the query should behave like queryset = User.objects.values().filter(A_name=A, B_name=B) And if C and A value passed in null then the query should behave like queryset =