Skip to content

Commit

Permalink
Fixed test view so it looks up objects like a real view would.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Bull committed Apr 11, 2010
1 parent 4f5a349 commit 87ffbe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_app/views.py
Expand Up @@ -35,7 +35,7 @@ def spangles_home(request):
def news_story_detail(request, slug):
return list_detail.object_detail(
request,
NewsStory.objects.all(),
NewsStory.objects.filter(language=request.LANGUAGE_CODE),
slug_field='slug',
slug=slug,
template_name='multilang_tests/newsstory_detail.html'
Expand Down

0 comments on commit 87ffbe8

Please sign in to comment.