Teplitsa / MikroAct

Repository of the MikroAct project. So far, this is a closed repository.
1 stars 0 forks source link

TypeError at /act/ while logged out. #34

Closed jcdk closed 11 years ago

jcdk commented 11 years ago

Logged out, I get the following error when clicking on Explore.

Request Method: GET
Request URL: http://127.0.0.1:8000/act/

Django Version: 1.5
Python Version: 2.7.1
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'bootstrap_toolkit',
 'south',
 'acts',
 'accounts',
 'guardian',
 'stream',
 'follow',
 'fluent_comments',
 'crispy_forms',
 'django.contrib.comments',
 'micawber.contrib.mcdjango')
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')

Traceback:
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
  86.         return handler(request, *args, **kwargs)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/views/generic/list.py" in get
  139.         context = self.get_context_data(object_list=self.object_list)
File "/Users/deklerk/Documents/Apps/MikroAct/acts/views.py" in get_context_data
  119.         kwargs.setdefault('campaign_form', AddToCampaignForm(user=self.request.user))
File "/Users/deklerk/Documents/Apps/MikroAct/acts/forms.py" in __init__
  37.                 user, 'acts.change_campaign', Campaign)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/guardian/shortcuts.py" in get_objects_for_user
  346.         .filter(user=user)\
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/manager.py" in filter
  155.         return self.get_query_set().filter(*args, **kwargs)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/query.py" in filter
  667.         return self._filter_or_exclude(False, *args, **kwargs)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/query.py" in _filter_or_exclude
  685.             clone.query.add_q(Q(*args, **kwargs))
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/sql/query.py" in add_q
  1259.                             can_reuse=used_aliases, force_having=force_having)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/sql/query.py" in add_filter
  1190.                 connector)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/sql/where.py" in add
  71.             value = obj.prepare(lookup_type, value)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/sql/where.py" in prepare
  339.             return self.field.get_prep_lookup(lookup_type, value)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/fields/related.py" in get_prep_lookup
  143.             return self._pk_trace(value, 'get_prep_lookup', lookup_type)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/fields/related.py" in _pk_trace
  216.         v = getattr(field, prep_func)(lookup_type, v, **kwargs)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/fields/__init__.py" in get_prep_lookup
  322.             return self.get_prep_value(value)
File "/Users/deklerk/Documents/Apps/MikroAct/env/lib/python2.7/site-packages/django/db/models/fields/__init__.py" in get_prep_value
  555.         return int(value)

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