Opened 7 years ago

Last modified 5 years ago

#24525 closed Bug

AssertionError at `Query.change_aliases` — at Version 1

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 (last modified by Ram Rachum)

(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_stack__readers': '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 (1)

comment:1 Changed 7 years ago by Ram Rachum

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top