From 1083ea856ecf08fa63dc6a1448ee3385aa516ce9 Mon Sep 17 00:00:00 2001 From: Felipe Vieira Date: Fri, 2 Dec 2011 13:59:47 +0000 Subject: [PATCH] arrumando erros de redirect --- sigi/apps/diagnosticos/urls.py | 2 +- sigi/apps/diagnosticos/views.py | 1 + sigi/templates/diagnosticos/diagnosticos_login.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sigi/apps/diagnosticos/urls.py b/sigi/apps/diagnosticos/urls.py index 9bee2f4..b58f95c 100644 --- a/sigi/apps/diagnosticos/urls.py +++ b/sigi/apps/diagnosticos/urls.py @@ -13,7 +13,7 @@ urlpatterns = patterns('', # Logout do Diagnóstico url(r'^logout/$', 'django.contrib.auth.views.logout', - {'next_page': LOGOUT_REDIRECT_URL}, name='logout'), + {'next_page': LOGIN_REDIRECT_URL}, name='logout'), # Lista de Categorias url(r'^(?P\d+)/categorias/$', 'sigi.apps.diagnosticos.views.categorias', name='lista_categorias'), diff --git a/sigi/apps/diagnosticos/views.py b/sigi/apps/diagnosticos/views.py index 62075ef..9534fc4 100644 --- a/sigi/apps/diagnosticos/views.py +++ b/sigi/apps/diagnosticos/views.py @@ -6,6 +6,7 @@ from django.shortcuts import render_to_response from django.template import RequestContext from django.views.decorators.cache import cache_page +from sigi.apps.diagnosticos.urls import LOGIN_REDIRECT_URL from sigi.apps.utils.decorators import login_required from sigi.apps.diagnosticos.decorators import validate_diagnostico from sigi.apps.diagnosticos.models import Diagnostico, Categoria diff --git a/sigi/templates/diagnosticos/diagnosticos_login.html b/sigi/templates/diagnosticos/diagnosticos_login.html index 84ace2e..3514c44 100644 --- a/sigi/templates/diagnosticos/diagnosticos_login.html +++ b/sigi/templates/diagnosticos/diagnosticos_login.html @@ -43,7 +43,7 @@ - +