Changes between Initial Version and Version 1 of Ticket #2331


Ignore:
Timestamp:
Jul 11, 2006, 8:32:52 PM (18 years ago)
Author:
Malcolm Tredinnick
Comment:

Could you provide an example of what you were doing to trigger this error, please. It is impossible to work it out just from the traceback. A model and a query against it that fails reliably would be nice. Thanks.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2331 – Description

    initial v1  
    55Traceback (most recent call last):
    66File "/home/data/py/django/core/handlers/base.py" in get_response
    7   74. response = callback(request, *callback_args, **callback_kwargs)
     7  74. response = callback(request, *callback_args, **callback_kwargs)
    88File "/home/data/py/zilbo/common/utils/views/filter.py" in _wrapper
    9   37. return generic(request, queryset.filter(**filter), *args, **kw)
     9  37. return generic(request, queryset.filter(**filter), *args, **kw)
    1010File "/home/data/py/django/views/generic/list_detail.py" in object_list
    11   45. object_list = paginator.get_page(page - 1)
     11  45. object_list = paginator.get_page(page - 1)
    1212File "/home/data/py/django/core/paginator.py" in get_page
    13   36. object_list = list(self.query_set[offset:offset+limit])
     13  36. object_list = list(self.query_set[offset:offset+limit])
    1414File "/home/data/py/django/db/models/query.py" in __iter__
    15   103. return iter(self._get_data())
     15  103. return iter(self._get_data())
    1616File "/home/data/py/django/db/models/query.py" in _get_data
    17   430. self._result_cache = list(self.iterator())
     17  430. self._result_cache = list(self.iterator())
    1818File "/home/data/py/django/db/models/query.py" in iterator
    19   171. select, sql, params = self._get_sql_clause()
     19  171. select, sql, params = self._get_sql_clause()
    2020File "/home/data/py/django/db/models/query.py" in _get_sql_clause
    21   444. joins2, where2, params2 = self._filters.get_sql(opts)
     21  444. joins2, where2, params2 = self._filters.get_sql(opts)
    2222File "/home/data/py/django/db/models/query.py" in get_sql
    23   574. joins2, where2, params2 = val.get_sql(opts)
     23  574. joins2, where2, params2 = val.get_sql(opts)
    2424File "/home/data/py/django/db/models/query.py" in get_sql
    25   622. return parse_lookup(self.kwargs.items(), opts)
     25  622. return parse_lookup(self.kwargs.items(), opts)
    2626File "/home/data/py/django/db/models/query.py" in parse_lookup
    27   734. joins2, where2, params2 = lookup_inner(path, lookup_type, value, opts, opts.db_table, None)
     27  734. joins2, where2, params2 = lookup_inner(path, lookup_type, value, opts, opts.db_table, None)
    2828File "/home/data/py/django/db/models/query.py" in lookup_inner
    29   906. params.extend(field.get_db_prep_lookup(lookup_type, value))
     29  906. params.extend(field.get_db_prep_lookup(lookup_type, value))
    3030File "/home/data/py/django/db/models/fields/related.py" in get_db_prep_lookup
    31   105. raise TypeError, "Related Field has invalid lookup: %s" % lookup_type
     31  105. raise TypeError, "Related Field has invalid lookup: %s" % lookup_type
    3232
    33   TypeError at /asset/machine/
    34   Related Field has invalid lookup: icontains
     33  TypeError at /asset/machine/
     34  Related Field has invalid lookup: icontains
    3535}}}
Back to Top