Projet

Général

Profil

Anomalie #3102

Mis à jour par Étienne Loks il y a presque 8 ans




 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:  	

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

 Exception Location:  	 /usr/lib/python2.7/dist-packages/django/db/models/fields/__init__.py in get_prep_value, line 537 
 Python Executable:  	 /usr/bin/uwsgi-core 
 Python Version:  	 2.7.3 
 Python Path:  	

 ['/srv/ishtarctest/ishtar/', 
  '.', 
  '', 
  '/usr/lib/python2.7', 
  '/usr/lib/python2.7/plat-linux2', 
  '/usr/lib/python2.7/lib-tk', 
  '/usr/lib/python2.7/lib-old', 
  '/usr/lib/python2.7/lib-dynload', 
  '/usr/local/lib/python2.7/dist-packages', 
  '/usr/lib/python2.7/dist-packages', 
  '/usr/lib/python2.7/dist-packages/PIL', 
  '/usr/lib/pymodules/python2.7'] 

 Server time:  	 jeu, 26 Mai 2016 10:32:19 +0200 

 Environment: 


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

 Django Version: 1.4.5 
 Python Version: 2.7.3 
 Installed Applications: 
 ['django.contrib.auth', 
  'django.contrib.admin', 
  'django.contrib.contenttypes', 
  'django.contrib.sessions', 
  'django.contrib.sites', 
  'django.contrib.gis', 
  'django.contrib.staticfiles', 
  'django.contrib.formtools', 
  'django.contrib.messages', 
  'south', 
  'registration', 
  'ishtar_pdl', 
  'ishtar_common', 
  'archaeological_files_pdl', 
  'archaeological_files', 
  'archaeological_operations', 
  'archaeological_context_records', 
  'archaeological_warehouse', 
  'archaeological_finds'] 
 Installed Middleware: 
 ['django.middleware.common.CommonMiddleware', 
  'django.contrib.sessions.middleware.SessionMiddleware', 
  'django.middleware.csrf.CsrfViewMiddleware', 
  'django.contrib.auth.middleware.AuthenticationMiddleware', 
  'django.contrib.messages.middleware.MessageMiddleware', 
  'django.middleware.locale.LocaleMiddleware'] 


 Traceback: 
 File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 
   134.                       response = response.render() 
 File "/usr/lib/python2.7/dist-packages/django/template/response.py" in render 
   104.               self._set_content(self.rendered_content) 
 File "/usr/lib/python2.7/dist-packages/django/template/response.py" in rendered_content 
   80.           context = self.resolve_context(self.context_data) 
 File "/usr/lib/python2.7/dist-packages/django/template/response.py" in resolve_context 
   158.           return RequestContext(self._request, context, current_app=self._current_app) 
 File "/usr/lib/python2.7/dist-packages/django/template/context.py" in __init__ 
   176.               self.update(processor(request)) 
 File "/srv/ishtarctest/ishtar/ishtar_common/context_processors.py" in get_base_context 
   79.           for item in model.get_owns(request.user): 
 File "/srv/ishtarctest/ishtar/archaeological_finds/models.py" in get_owns 
   389.           return FindBasket.objects.filter(user=user) 
 File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py" in filter 
   143.           return self.get_query_set().filter(*args, **kwargs) 
 File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in filter 
   624.           return self._filter_or_exclude(False, *args, **kwargs) 
 File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in _filter_or_exclude 
   642.               clone.query.add_q(Q(*args, **kwargs)) 
 File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py" in add_q 
   1250.                               can_reuse=used_aliases, force_having=force_having) 
 File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py" in add_filter 
   1185.                   connector) 
 File "/usr/lib/python2.7/dist-packages/django/db/models/sql/where.py" in add 
   69.               value = obj.prepare(lookup_type, value) 
 File "/usr/lib/python2.7/dist-packages/django/db/models/sql/where.py" in prepare 
   320.               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 
   137.               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 
   210.           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 
   310.               return self.get_prep_value(value) 
 File "/usr/lib/python2.7/dist-packages/django/db/models/fields/__init__.py" in get_prep_value 
   537.           return int(value) 

 Exception Type: TypeError at /accounts/logout/ 
 Exception Value: int() argument must be a string or a number, not 'AnonymousUser'

Retour