e-Luminate / eluminate_web

The E-Luminate Website
GNU General Public License v3.0
2 stars 3 forks source link

events/create crash #75

Closed KimSJ closed 11 years ago

KimSJ commented 11 years ago

Environment:

Request Method: GET Request URL: http://192.168.0.4:8000/events/create

Django Version: 1.4.3 Python Version: 2.7.3 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.gis', 'pinax_theme_bootstrap_account', 'pinax_theme_bootstrap', 'django_forms_bootstrap', 'account', 'metron', 'eventlog', 'south', 'crispy_forms', 'debug_toolbar', 'eluminate_web', 'events', 'maps', 'participant', 'participant_profile', 'search'] 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', 'debug_toolbar.middleware.DebugToolbarMiddleware']

Traceback: File "/home/kim/.virtualenvs/eluminate_env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/home/kim/.virtualenvs/eluminate_env/local/lib/python2.7/site-packages/django/views/generic/base.py" in view
  2. return self.dispatch(request, _args, *_kwargs) File "/home/kim/.virtualenvs/eluminate_env/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
  3. return bound_func(_args, *_kwargs) File "/home/kim/.virtualenvs/eluminate_env/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  4. return view_func(request, _args, *_kwargs) File "/home/kim/.virtualenvs/eluminate_env/local/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
  5. return func(self, _args2, *_kwargs2) File "/home/kim/.virtualenvs/eluminate_env/local/lib/python2.7/site-packages/braces/views.py" in dispatch
  6. _args, *_kwargs) File "/home/kim/.virtualenvs/eluminate_env/local/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
  7. return handler(request, _args, *_kwargs) File "/home/kim/.virtualenvs/eluminate_env/local/lib/python2.7/site-packages/django/views/generic/edit.py" in get
  8. return super(BaseCreateView, self).get(request, _args, *_kwargs) File "/home/kim/.virtualenvs/eluminate_env/local/lib/python2.7/site-packages/django/views/generic/edit.py" in get
  9. form = self.get_form(form_class) File "/home/kim/.virtualenvs/eluminate_env/local/lib/python2.7/site-packages/django/views/generic/edit.py" in get_form
  10. return form_class(self.get_form_kwargs()) File "/home/kim/e-luminate/eluminate_web/eluminate_web/apps/events/forms.py" in init**
  11. location_selected = location_queryset.filter(id=self.instance.location.id)

Exception Type: AttributeError at /events/create Exception Value: 'NoneType' object has no attribute 'id'

mattions commented 11 years ago

This has been solved