Project

General

Profile

Actions

Anomalie #3102

closed

Crash when logout from 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/26/2016
Due date:
% Done:

100%

Estimated time:
Difficulté:

Description

Then when loging in we have the lazyobject bug : https://tickets.iggdrasil.net/issues/3101

TypeError at /accounts/logout/

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

Request Method: GET

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

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 = response.render()

File "/usr/lib/python2.7/dist-packages/django/template/response.py" in render

  1. self._set_content(self.rendered_content)

File "/usr/lib/python2.7/dist-packages/django/template/response.py" in rendered_content

  1. context = self.resolve_context(self.context_data)

File "/usr/lib/python2.7/dist-packages/django/template/response.py" in resolve_context

  1. return RequestContext(self._request, context, current_app=self._current_app)

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 /accounts/logout/

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


Related issues 1 (0 open1 closed)

Related to Ishtar - Anomalie #3101: Crash on Ishtar_TESTFerméÉtienne Loks05/25/2016

Actions
Actions #1

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 #2

Updated by Étienne Loks over 7 years ago

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