News for hackers. Stuff that matters.
Re:Django 1.10 released by jsmeaton on Monday August 01, 2016 @10:26PM (#12207487)
Exclude filters are awful and very unintuitive if you know SQL in my experience. I'd much prefer to use negated filters like: `.filter(id__notequal=3)`. I'm giving a talk at djangocon AU in a couple of weeks where I'll step through examples like this.
Re:Django 1.10 released by rtpg on Monday August 01, 2016 @10:48PM (#12207557)
Right. Worse case, you can use `~Q` or the like. The way I recall it, this didn't solve the issue (as in: something more fundamental than "using exclude instead of filter"), but I no longer have the example...