Changes between Initial Version and Version 1 of Ticket #20564, comment 1


Ignore:
Timestamp:
Jun 5, 2013, 12:11:09 PM (11 years ago)
Author:
Nicolas Ferrari

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20564, comment 1

    initial v1  
    55  File "./exclude_generic.py", line 38, in <module>
    66    c5 = C.objects.exclude(b__a__flag__isnull=True)
    7   File "/data/www/dev/cbay/env/lib/python2.6/site-packages/django/db/models/manager.py", line 175, in exclude
     7  File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/manager.py", line 175, in exclude
    88    return self.get_queryset().exclude(*args, **kwargs)
    9   File "/data/www/dev/cbay/env/lib/python2.6/site-packages/django/db/models/query.py", line 601, in exclude
     9  File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/query.py", line 601, in exclude
    1010    return self._filter_or_exclude(True, *args, **kwargs)
    11   File "/data/www/dev/cbay/env/lib/python2.6/site-packages/django/db/models/query.py", line 610, in _filter_or_exclude
     11  File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/query.py", line 610, in _filter_or_exclude
    1212    clone.query.add_q(~Q(*args, **kwargs))
    13   File "/data/www/dev/cbay/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1200, in add_q
     13  File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1200, in add_q
    1414    clause = self._add_q(where_part, used_aliases)
    15   File "/data/www/dev/cbay/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1236, in _add_q
     15  File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1236, in _add_q
    1616    current_negated=current_negated)
    17   File "/data/www/dev/cbay/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1107, in build_filter
     17  File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1107, in build_filter
    1818    can_reuse, e.names_with_path)
    19   File "/data/www/dev/cbay/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1455, in split_exclude
     19  File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1455, in split_exclude
    2020    join_field.field.foreign_related_fields[0].name)
    2121AttributeError: 'ForeignKey' object has no attribute 'field'
Back to Top