Opened 17 years ago
Last modified 17 years ago
#7045 closed
db.models.sql.Query.add_extra() does not append extra tables to Query.alias_map dict — at Version 1
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | queryset-refactor |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Customer.objects.extra(select={'mid' : '!customerj.id'}, tables=['customerj'], where=['!app_customer.id=customerj.id'])
raises exception:
Request Method: POST[[BR]] Request URL: !http://127.0.0.1:8000/app/CustomerList/ [[BR]] Exception Type: !KeyError[[BR]] Exception Value: 'customerj'[[BR]] Exception Location: /home/bring/src/queryset-refactor/django/db/models/sql/query.py in get_from_clause, line 423[[BR]] Python Executable: /usr/bin/python[[BR]] Python Version: 2.5.1
Note:
See TracTickets
for help on using tickets.
Fixed description.