Code review comment for lp://staging/~doctormo/loco-team-portal/previous-used-venues

Revision history for this message
Michael Hall (mhall119) wrote :

Environment:

Request Method: GET
Request URL: http://127.0.0.1:8000/events/ubuntu-us-florida/add/
Django Version: 1.1.2
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.admin',
 'common',
 'teams',
 'venues',
 'events',
 'meetings',
 'userprofiles',
 'django_openid_auth',
 'south',
 'bzr_apps']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')

Traceback:
File "/home/mhall/projects/Ubuntu/locodir/work/.env/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
  99. response = callback(request, *callback_args, **callback_kwargs)
File "/home/mhall/projects/Ubuntu/locodir/work/.env/lib/python2.6/site-packages/django/contrib/auth/decorators.py" in __call__
  78. return self.view_func(request, *args, **kwargs)
File "/home/mhall/projects/Ubuntu/locodir/work/loco_directory/events/views.py" in team_event_new
  209. form = TeamEventForm(initial={'global_event':request.GET.get('global_event_id', None)}, teams=[team_object])
File "/home/mhall/projects/Ubuntu/locodir/work/loco_directory/events/forms.py" in __init__
  69. self.fields['venue'].choices = self.grouped_venue_list()
File "/home/mhall/projects/Ubuntu/locodir/work/loco_directory/events/forms.py" in grouped_venue_list
  103. previous_choice.append((event.venue.id, str(event.venue)))

Exception Type: AttributeError at /events/ubuntu-us-florida/add/
Exception Value: 'NoneType' object has no attribute 'id'

review: Needs Fixing

« Back to merge proposal