Project

General

Profile

Anomalie #3101

Updated by √Čtienne Loks about 8 years ago

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:  	

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

 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:  	 Wed, 25 May 2016 15:17:18 +0200 

 Environment: 


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

 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 
   109.                           response = callback(request, *callback_args, **callback_kwargs) 
 File "/srv/ishtarctest/ishtar/ishtar_common/views.py" in index 
   79.                                     context_instance=RequestContext(request)) 
 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 / 
 Exception Value: int() argument must be a string or a number, not 'SimpleLazyObject' 


Back