Closed
Bug 764597
Opened 13 years ago
Closed 12 years ago
500 Error when multiple news items are set to be shown on the Affiliates.
Categories
(Firefox Affiliates Graveyard :: affiliates.mozilla.org, defect)
Firefox Affiliates Graveyard
affiliates.mozilla.org
Tracking
(Not tracked)
VERIFIED
WONTFIX
People
(Reporter: osmose, Unassigned)
References
()
Details
Steps to Reproduce:
1. Log into the Affiliates admin interface.
2. View the News Item admin page.
3. Ensure at least two news items have the "Show on Site" checkbox checked and save them.
4. View the My Banners page.
Expected:
The most recent news story is displayed in the news box.
Actual:
An error page is shown and the following traceback is logged:
Traceback (most recent call last):
File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/data/www/affiliates-dev.allizom.org/affiliates-app/apps/shared/decorators.py", line 11, in decorator
return view_func(request, *args, **kwargs)
File "/data/www/affiliates-dev.allizom.org/affiliates-app/apps/badges/views.py", line 48, in my_badges
{'instance_categories': instance_categories})
File "/data/www/affiliates-dev.allizom.org/affiliates-app/apps/shared/decorators.py", line 11, in decorator
return view_func(request, *args, **kwargs)
File "/data/www/affiliates-dev.allizom.org/affiliates-app/apps/badges/views.py", line 62, in dashboard
context['newsitem'] = NewsItem.objects.current()
File "/data/www/affiliates-dev.allizom.org/affiliates-app/apps/news/models.py", line 14, in current
return (NewsItem.objects.filter(enabled=True).order_by('-created')
File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/db/models/query.py", line 351, in get
% (self.model._meta.object_name, num, kwargs))
MultipleObjectsReturned: get() returned more than one NewsItem -- it returned 2! Lookup parameters were {}
| Assignee | ||
Updated•13 years ago
|
Product: Websites → Firefox Affiliates
| Reporter | ||
Comment 1•12 years ago
|
||
Current News system will be replaced by something new during the redesign in bug 945867, so I'll call this WONTFIX.
Although we should keep this in mind as a test case depending on how the new news stuff is implemented.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
| Assignee | ||
Updated•10 years ago
|
Product: Firefox Affiliates → Firefox Affiliates Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•