From ec10f357cfc1407e5a1a7f50f22b396a55f71fef Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Tue, 20 Nov 2012 12:19:12 +0100 Subject: [PATCH] Used RedirectView from openslides.utils.views. Used reverse_lazy instead of hard coded redirect url. --- openslides/urls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openslides/urls.py b/openslides/urls.py index 2c3465260..106a3dca7 100644 --- a/openslides/urls.py +++ b/openslides/urls.py @@ -13,16 +13,17 @@ from django.conf import settings from django.conf.urls.defaults import patterns, url, include from django.contrib.staticfiles.urls import staticfiles_urlpatterns +from django.core.urlresolvers import reverse_lazy from django.shortcuts import redirect from django.utils.importlib import import_module -from django.views.generic import RedirectView +from openslides.utils.views import RedirectView handler500 = 'openslides.utils.views.server_error' urlpatterns = patterns('', # Redirect to dashboard URL - (r'^$', RedirectView.as_view(url='/projector/dashboard/', permanent=False)), + url(r'^$', RedirectView.as_view(url=reverse_lazy('dashboard')), name='home',), (r'^agenda/', include('openslides.agenda.urls')), (r'^motion/', include('openslides.motion.urls')),