[traceback] AttributeError: type object 'GENERIC_12' has no attribute 'ratingsbody'

VERIFIED FIXED in 2013-11-05

Status

VERIFIED FIXED
5 years ago
5 years ago

People

(Reporter: krupa.mozbugs, Assigned: cvan)

Tracking

2013-11-05
Points:
---

Details

(URL)

(Reporter)

Description

5 years ago
steps to reproduce:
1. Load  https://marketplace-dev.allizom.org/developers/app/penguin-pop/edit#edit-addon-admin
2. Select multiple Content ratings option and save changes

sentry: http://sentry.dmz.phx1.mozilla.com/addons/marketplace-dev/group/17064/

traceback details:


AttributeError: type object 'GENERIC_12' has no attribute 'ratingsbody'

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "newrelic/hooks/framework_django.py", line 485, in wrapper
    return wrapped(*args, **kwargs)
  File "amo/decorators.py", line 157, in wrapper
    return f(*args, **kw)
  File "amo/decorators.py", line 149, in wrapper
    return f(*args, **kw)
  File "addons/decorators.py", line 33, in wrapper
    return f(request, addon, *args, **kw)
  File "amo/decorators.py", line 32, in wrapper
    return func(request, *args, **kw)
  File "mkt/developers/decorators.py", line 36, in wrapper
    return fun()
  File "mkt/developers/decorators.py", line 28, in <lambda>
    *args, **kw)
  File "mkt/developers/views.py", line 766, in addons_section
    if all(not f or f.is_valid() for f in all_forms):
  File "mkt/developers/views.py", line 766, in <genexpr>
    if all(not f or f.is_valid() for f in all_forms):
  File "django/forms/forms.py", line 124, in is_valid
    return self.is_bound and not bool(self.errors)
  File "django/forms/forms.py", line 115, in _get_errors
    self.full_clean()
  File "django/forms/forms.py", line 270, in full_clean
    self._clean_fields()
  File "happyforms/__init__.py", line 32, in _clean_fields
    value = getattr(self, 'clean_%s' % name)()
  File "mkt/developers/forms.py", line 287, in clean_app_ratings
    ratingsbodies = set([r.ratingsbody for r in ratings])
(Assignee)

Comment 1

5 years ago
https://github.com/mozilla/zamboni/commit/722d5ac
Assignee: nobody → cvan
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-11-05
(Reporter)

Comment 2

5 years ago
verified fixed @ https://marketplace-dev.allizom.org/developers/app/penguin-pop/edit#edit-addon-admin
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.