Project

General

Profile

Actions

Anomalie #3101

closed

Crash on Ishtar_TEST

Added by Yann Le Jeune over 7 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Immédiat
Assignee:
Category:
-
Target version:
Start date:
05/25/2016
Due date:
% Done:

100%

Estimated time:
Difficulté:

Description

TypeError at /

int() argument must be a string or a number, not 'SimpleLazyObject'

Request Method: GET

Request URL: http://test.ishtar-archeo.net/

Django Version: 1.4.5

Exception Type: TypeError

Exception Value:

(...)

Traceback:

File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, *callback_args, **callback_kwargs)

File "/srv/ishtarctest/ishtar/ishtar_common/views.py" in index

  1. context_instance=RequestContext(request))

File "/usr/lib/python2.7/dist-packages/django/template/context.py" in init

  1. self.update(processor(request))

File "/srv/ishtarctest/ishtar/ishtar_common/context_processors.py" in get_base_context

  1. for item in model.get_owns(request.user):

File "/srv/ishtarctest/ishtar/archaeological_finds/models.py" in get_owns

  1. return FindBasket.objects.filter(user=user)

File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py" in filter

  1. return self.get_query_set().filter(*args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in filter

  1. return self._filter_or_exclude(False, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in _filter_or_exclude

  1. clone.query.add_q(Q(*args, **kwargs))

File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py" in add_q

  1. can_reuse=used_aliases, force_having=force_having)

File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py" in add_filter

  1. connector)

File "/usr/lib/python2.7/dist-packages/django/db/models/sql/where.py" in add

  1. value = obj.prepare(lookup_type, value)

File "/usr/lib/python2.7/dist-packages/django/db/models/sql/where.py" in prepare

  1. return self.field.get_prep_lookup(lookup_type, value)

File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py" in get_prep_lookup

  1. return self._pk_trace(value, 'get_prep_lookup', lookup_type)

File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py" in _pk_trace

  1. v = getattr(field, prep_func)(lookup_type, v, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/db/models/fields/init.py" in get_prep_lookup

  1. return self.get_prep_value(value)

File "/usr/lib/python2.7/dist-packages/django/db/models/fields/init.py" in get_prep_value

  1. return int(value)

Exception Type: TypeError at /

Exception Value: int() argument must be a string or a number, not 'SimpleLazyObject'


Related issues 1 (0 open1 closed)

Related to Ishtar - Anomalie #3102: Crash when logout from TESTFerméÉtienne Loks05/26/2016

Actions
Actions #1

Updated by Étienne Loks over 7 years ago

Actions #2

Updated by Étienne Loks over 7 years ago

  • % Done changed from 0 to 100
  • Status changed from Nouveau to Résolu
  • Description updated (diff)
Actions #3

Updated by Yann Le Jeune over 7 years ago

  • Status changed from Résolu to Fermé

OK

Actions

Also available in: Atom PDF