Closed Bug 666990 Opened 14 years ago Closed 14 years ago

UndefinedError: caching.base.CachingQuerySet object has no element 1

Categories

(addons.mozilla.org Graveyard :: Admin/Editor Tools, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: krupa.mozbugs, Assigned: gkoberger)

References

()

Details

steps to reproduce: 1. Pick an add-on which has a) public versions b) newer versions awaiting review 2. Delete one of the fully reviewed versions of the add-on. 3. Editor tools-> Go to the review detail page for that add-on. reproducible? no (refreshing the page worked fine.) observed behavior: Traceback (most recent call last): File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/amo_python/www/preview/zamboni/apps/amo/decorators.py", line 29, in wrapper return func(request, *args, **kw) File "/data/amo_python/www/preview/zamboni/apps/editors/views.py", line 44, in wrapper return func(request, *args, **kw) File "/data/amo_python/www/preview/zamboni/apps/addons/decorators.py", line 22, in wrapper return f(request, addon, *args, **kw) File "/data/amo_python/www/preview/zamboni/apps/editors/views.py", line 452, in review return jingo.render(request, 'editors/review.html', ctx) File "/data/amo_python/www/preview/zamboni/vendor/src/jingo/jingo/__init__.py", line 79, in render rendered = render_to_string(request, template, context) File "/data/amo_python/www/preview/zamboni/vendor/src/jingo/jingo/__init__.py", line 97, in render_to_string return template.render(**get_context()) File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in render return self.environment.handle_exception(exc_info, True) File "/data/amo_python/www/preview/zamboni/apps/editors/templates/editors/review.html", line 1, in top-level template code {% extends "editors/base.html" %} File "/data/amo_python/www/preview/zamboni/apps/editors/templates/editors/base.html", line 1, in top-level template code {% extends "base.html" %} File "/data/amo_python/www/preview/zamboni/templates/base.html", line 111, in top-level template code {% block main_content %} File "/data/amo_python/www/preview/zamboni/templates/base.html", line 116, in block "main_content" {% block content %}{% endblock %} File "/data/amo_python/www/preview/zamboni/apps/editors/templates/editors/review.html", line 55, in block "content" {% trans version = version.version, created = version.created|datetime, version_status = version.status|join(',') %} File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 371, in getattr return getattr(obj, attribute) UndefinedError: caching.base.CachingQuerySet object has no element 1
caching issue is going to be hard to reproduce. Does this happen to you often?
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.