Changes between Initial Version and Version 2 of Ticket #13640


Ignore:
Timestamp:
May 27, 2010, 1:15:24 PM (15 years ago)
Author:
Alex Gaynor
Comment:

Updated the syntax.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13640 – Description

    initial v2  
    33one will get exception in admin edit page for that model if the page
    44contains inline forms with related models:
    5 
     5{{{
    66Exception Value:  'Shipper' object has no attribute 'prepare'
    77Exception Location:     .../django/db/models/sql/expressions.py in
    88__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}}}
     10It is caused by the fact that add_filter function in django/db/models/sql/query.py does such a check:
     11{{{
    1312...
    14131005.  elif hasattr(value, 'evaluate'):
     
    17161008.      having_clause = value.contains_aggregate
    1817...
    19 
     18}}}
    2019The problem is that "value" in this case is Shipper model which in
    2120have "evaluate" method so it is recognized as query expression here.
Back to Top