Anomalie #3102
ferméCrash when logout from TEST
100%
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
- response = response.render()
File "/usr/lib/python2.7/dist-packages/django/template/response.py" in render
- self._set_content(self.rendered_content)
File "/usr/lib/python2.7/dist-packages/django/template/response.py" in rendered_content
- context = self.resolve_context(self.context_data)
File "/usr/lib/python2.7/dist-packages/django/template/response.py" in resolve_context
- return RequestContext(self._request, context, current_app=self._current_app)
File "/usr/lib/python2.7/dist-packages/django/template/context.py" in init
- self.update(processor(request))
File "/srv/ishtarctest/ishtar/ishtar_common/context_processors.py" in get_base_context
- for item in model.get_owns(request.user):
File "/srv/ishtarctest/ishtar/archaeological_finds/models.py" in get_owns
- return FindBasket.objects.filter(user=user)
File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py" in filter
- return self.get_query_set().filter(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in filter
- return self._filter_or_exclude(False, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in _filter_or_exclude
- clone.query.add_q(Q(*args, **kwargs))
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py" in add_q
- can_reuse=used_aliases, force_having=force_having)
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py" in add_filter
- connector)
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/where.py" in add
- value = obj.prepare(lookup_type, value)
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/where.py" in prepare
- 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
- 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
- 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
- return self.get_prep_value(value)
File "/usr/lib/python2.7/dist-packages/django/db/models/fields/init.py" in get_prep_value
- return int(value)
Exception Type: TypeError at /accounts/logout/
Exception Value: int() argument must be a string or a number, not 'AnonymousUser'