~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to django/db/models/sql/query.py

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-10-12 11:34:35 UTC
  • mfrom: (1.2.7 upstream)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: james.westby@ubuntu.com-20101012113435-9lnsrh0i3mxozbt0
Tags: upstream-1.2.3
ImportĀ upstreamĀ versionĀ 1.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1090
1090
                    # exclude the "foo__in=[]" case from this handling, because
1091
1091
                    # it's short-circuited in the Where class.
1092
1092
                    # We also need to handle the case where a subquery is provided
1093
 
                    entry = self.where_class()
1094
 
                    entry.add((Constraint(alias, col, None), 'isnull', True), AND)
1095
 
                    entry.negate()
1096
 
                    self.where.add(entry, AND)
 
1093
                    self.where.add((Constraint(alias, col, None), 'isnull', False), AND)
1097
1094
 
1098
1095
        if can_reuse is not None:
1099
1096
            can_reuse.update(join_list)