Fix failing tests

This commit is contained in:
Tom Christie 2012-09-28 10:11:12 +01:00
parent ee36e4ab0c
commit 62ccc1a306

View File

@ -53,7 +53,7 @@ def optional_login(request):
"""
try:
login_url = reverse('rest_framework:login')
except NoReverseMatch:
except:
return ''
snippet = "<a href='%s?next=%s'>Log in</a>" % (login_url, request.path)
@ -67,7 +67,7 @@ def optional_logout(request):
"""
try:
logout_url = reverse('rest_framework:logout')
except NoReverseMatch:
except:
return ''
snippet = "<a href='%s?next=%s'>Log out</a>" % (logout_url, request.path)