Ticket #4858: 4858.patch
File 4858.patch, 725 bytes (added by , 17 years ago) |
---|
-
django/db/models/query.py
752 752 def __or__(self, other): 753 753 return QOr(self, other) 754 754 755 def __invert__(self): 756 return QNot(self) 757 755 758 def get_sql(self, opts): 756 759 return parse_lookup(self.kwargs.items(), opts) 757 760 … … 761 764 "Creates a negation of the q object passed in." 762 765 self.q = q 763 766 767 def __invert__(self): 768 "Returns the inner, non-negated q object" 769 return self.q 770 764 771 def get_sql(self, opts): 765 772 try: 766 773 joins, where, params = self.q.get_sql(opts)