• Giorgos Korfiatis's avatar
    snf_django: Properly chain `exclude' queries · 83322ab3
    Giorgos Korfiatis authored
    Although chained filters, e.g. filter(p1).filter(p2), can be summed up as
    filter(p1, p2), this is not the case with exclude. If you want to exclude
    those selected by p1 as well as those selected by p2, you need
    exclude(p1).exclude(p2).
    83322ab3
__init__.py 12.8 KB