Permalink
Browse files

No opinion details page for unused types.

This fixes the following TB:

ERROR (EXTERNAL IP): Internal Server Error: /ru/opinion/1972907
  • Loading branch information...
1 parent a17c6d5 commit e6708ad39f967a78fc39c64ded94e0a9e69c7f97 @davedash davedash committed Dec 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/feedback/views.py
View
@@ -120,7 +120,7 @@ def thanks(request):
@forward_mobile
@cache_page
def opinion_detail(request, id):
- o = get_object_or_404(Opinion, pk=id)
+ o = get_object_or_404(Opinion, pk=id, _type__in=input.OPINION_TYPES.keys())
if not request.mobile_site:
template = 'feedback/opinion.html'

0 comments on commit e6708ad

Please sign in to comment.