Changes between Initial Version and Version 1 of Ticket #20564, comment 1
- Timestamp:
- Jun 5, 2013, 12:11:09 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20564, comment 1
initial v1 5 5 File "./exclude_generic.py", line 38, in <module> 6 6 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 exclude7 File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/manager.py", line 175, in exclude 8 8 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 exclude9 File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/query.py", line 601, in exclude 10 10 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_exclude11 File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/query.py", line 610, in _filter_or_exclude 12 12 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_q13 File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1200, in add_q 14 14 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_q15 File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1236, in _add_q 16 16 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_filter17 File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1107, in build_filter 18 18 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_exclude19 File "/data/www/dev/nferrari/env/lib/python2.6/site-packages/django/db/models/sql/query.py", line 1455, in split_exclude 20 20 join_field.field.foreign_related_fields[0].name) 21 21 AttributeError: 'ForeignKey' object has no attribute 'field'