Opened 8 years ago
Closed 8 years ago
#28286 closed Bug (invalid)
Union ("|") and Interception ("&") QuerySets raise AssertionError
Reported by: | AbrahamGo | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | |
Severity: | Normal | Keywords: | QuerySets, 1.7 |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
We are currently working to migrate a project from Django 1.5.12
to 1.7.11
and we are currently receiving the following error in Django 1.7.11
when we are using union ("|") or interception ("&" ) between QuerySets
, for example queryset_c = queryset_a | queryset_b
.
AssertionError: assert set(['T6', 'T...encyaccount']) == set([]) Extra items in the left set: 'clients_client' 'reconciliation_asset' 'T8' 'T6' 'settlements_currencyaccount' 'core_entity' Use -v to get the full diff
Investigating we have noticed that it's a bug fixed in Django 1.8.5
but we need to know if there is any work around to this issue in Django 1.7.11
or we should redo this logic to avoid use "|" and "&" operators.
Could you let me know if there is any work around please?
Thanks.
Change History (3)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
comment:2 by , 8 years ago
Description: | modified (diff) |
---|
comment:3 by , 8 years ago
Component: | Error reporting → Database layer (models, ORM) |
---|---|
Owner: | set to |
Resolution: | → invalid |
Status: | new → closed |
Django 1.7 is no longer supported. You can try asking for help on our support channels, but I guess it would probably be easier to upgrade to a supported version of Django.