Fix improperly case-sensitive narrowing by subject.

(imported from commit 24403f0815e46f21000f7d5a5b59bfdfe3448ddf)
This commit is contained in:
Tim Abbott 2013-02-28 16:32:06 -05:00
parent 1e9a85ff05
commit 36bb39ede9

View File

@ -507,7 +507,7 @@ class NarrowBuilder(object):
return Q(recipient=recipient)
def by_subject(self, operand):
return Q(subject=operand)
return Q(subject__iexact=operand)
def by_sender(self, operand):
return Q(sender__user__email__iexact=operand)