Permalink
Browse files

add test for redirect

  • Loading branch information...
fivethreeo committed Sep 24, 2011
1 parent cfbda15 commit e55439b3b4b804c7726cbf5fbbe4f03f14813034
Showing with 2 additions and 2 deletions.
  1. +2 −2 cmsplugin_blog/views.py
View
@@ -38,8 +38,8 @@ def get_object(self):
if is_multilingual():
try:
queryset = self.get_unfiltered_queryset()
- obj = super(EntryDateDetailView, self).get_object(queryset=queryset)
- except Entry.MultipleObjectsReturned:
+ obj = self.get_object(queryset=queryset)
+ except Entry.MultipleObjectsReturned, Http404:
raise e
# We know there is only one title for this entry, so we can simply use get()
raise Redirect(obj.entrytitle_set.get().get_absolute_url())

0 comments on commit e55439b

Please sign in to comment.