Opened 7 years ago

Last modified 5 years ago

#24525 closed Bug

AssertionError at `Query.change_aliases` — at Initial Version

Reported by: Ram Rachum Owned by: nobody
Component: Database layer (models, ORM) Version: 1.11
Severity: Release blocker Keywords:
Cc: kevmitch Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

(Django version 1.7.7)

I'm getting an assertion error on the first line of Query.change_aliases:

assert set(change_map.keys()).intersection(set(change_map.values())) == set()

Problem is, I can't post more data, because the queryset has confidential client information :(

I can post the value of change_map, with identifying details renamed:

{'T5': 'T10',

'T6': 'T11',
'T8': 'T13',
'my_app_follow': 'my_app_follow',
'my_app_stackreaders': 'T7',
'my_app_stack
writers': 'T9',
'my_app_user': 'T8'}

This happened when doing & on two querysets, one of which having .distinct() applied on it, among other things.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top