Changes between Initial Version and Version 2 of Ticket #13640
- Timestamp:
- May 27, 2010, 1:15:24 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13640 – Description
initial v2 3 3 one will get exception in admin edit page for that model if the page 4 4 contains inline forms with related models: 5 5 {{{ 6 6 Exception Value: 'Shipper' object has no attribute 'prepare' 7 7 Exception Location: .../django/db/models/sql/expressions.py in 8 8 __init__, line 12 9 10 It is caused by the fact that add_filter function in django/db/models/ 11 sql/query.py does such a check: 12 9 }}} 10 It is caused by the fact that add_filter function in django/db/models/sql/query.py does such a check: 11 {{{ 13 12 ... 14 13 1005. elif hasattr(value, 'evaluate'): … … 17 16 1008. having_clause = value.contains_aggregate 18 17 ... 19 18 }}} 20 19 The problem is that "value" in this case is Shipper model which in 21 20 have "evaluate" method so it is recognized as query expression here.