« Previous | Next » 

Revision c8922d01

IDc8922d016637eb62f62f84807d1fc2345947defa

Added by Giorgos Korfiatis almost 7 years ago

snf_django: Properly chain `exclude' queries

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).

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences