How do I do a not equal in Django queryset filtering?

Posted by Ramesh Singh | Updated on

How do I do a not equal in Django queryset filtering? Use the following example code. Maybe Q objects could be of help for this problem. I’ve never used them but it seems they can be negated and combined much like normal python expressions.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers