#24525: AssertionError at `Query.change_aliases`
-------------------------------------+-------------------------------------
Reporter: coolRR | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.7
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by coolRR):
Hi Josh,
Thanks for your help.
- Turns out I was wrong about the `.distinct` thing, it's to be applied
''after'' the failing code and not before it, so it's not relevant. That
was my mistake. In other words `.distinct` is definitely not used in the
failing query, so we can't expect to get the "Cannot combine a unique
query with a non-unique query" error.
- I tried to run my code on Django 1.8, and got the exact same error.
- Here is a traceback of the error: http://i.imgur.com/nM748ne.jpg The
frame just above the one visible is the frame in which I do `&` between
two querysets. (Didn't include these frames because they have client
code.) (This traceback was done on Django 1.8, if you want the same on
Django 1.7.7 I can do that too.) If you'll want me to expand any of the
"Local vars" sections, let me know.
Also, if you're interested enough and have the time to do a VNC or
TeamViewer session to my dev machine, I can show you the whole thing. Of
course, I'll totally understand if you're too busy. If so I'll try to do a
sample app. (Trying to avoid billing my client for the hours that this
will take.)
Thanks,
Ram.
--
Ticket URL: <https://code.djangoproject.com/ticket/24525#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.94b44f0e89a2da66bb76d7dcdf1fa806%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.