Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when attempting to draw prizes. #17

Open
zephyyrr opened this issue Feb 13, 2018 · 0 comments
Open

Crash when attempting to draw prizes. #17

zephyyrr opened this issue Feb 13, 2018 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@zephyyrr
Copy link
Member

URL: https://donations.esamarathon.com/admin/draw_prize_winners
How to replicate: Go to the Draw Prize Winners view and click the button.

Error: KeyError at /admin/draw_prize_winners
Traceback:

Environment:


Request Method: POST
Request URL: https://donations.esamarathon.com/admin/draw_prize_winners

Django Version: 1.9.13
Python Version: 2.7.14
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'post_office',
 'paypal.standard.ipn',
 'tracker',
 'tracker_ui',
 'timezone_field',
 'ajax_select',
 'mptt')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.common.CommonMiddleware')



Traceback:

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  149.                     response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)

File "/var/www/tracker/tracker/admin.py" in draw_prize_winners
  1023.     if form.is_valid():

File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py" in is_valid
  161.         return self.is_bound and not self.errors

File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py" in errors
  153.             self.full_clean()

File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py" in full_clean
  363.         self._clean_form()

File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py" in _clean_form
  390.             cleaned_data = self.clean()

File "/var/www/tracker/tracker/forms.py" in clean
  499.             map(lambda x: models.Prize.objects.get(id=x), self.cleaned_data['prizes']))

Exception Type: KeyError at /admin/draw_prize_winners
Exception Value: 'prizes'
@zephyyrr zephyyrr added the bug Something isn't working label Feb 13, 2018
@zephyyrr zephyyrr added this to the ESA Summer 2018 milestone Feb 13, 2018
@zephyyrr zephyyrr added the good first issue Good for newcomers label Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant