Line 125 of models.py throws an exception with the latest Django trunk
Bug #503652 reported by
Zeth
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
django-tables |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Hello line 125 of: django_
_temp.query.
The .as_sql method is gone from the Django trunk, therefore when you using django-tables you get:
'Query' object has no attribute 'as_sql'
Deleting the line stops the error, but obviously breaks whatever this line was trying to do.
To post a comment you must log in.
An equivalent would be _temp.query. __str__ () but I do not know if that would have whatever side-effect you need to throw the exception. Surely there is a more direct way of doing whatever you are trying to do?
Anyhow, this is what I used.