django/django — pull request #405 by akaariai (2012-09-28 20:32:37+00:00)
Title: Ticket 16211 - add comparison operators to F() expressions

Allow use of ==, <=, <, >, >= and ~ operators in F() expression comparisons.

The only problematic case here is the override of \_\_eq\_\_ which will break using F() expressions in dicts or sets, and of course comparing two F() expressions should be done with 'f1 is f2 ' instead of 'f1 == f2'.

Pull create for easier review.