Permalink
Browse files

Fix RedirectView usage

  • Loading branch information...
1 parent 879b318 commit 1aa689909be1a5d5b17b46c634e854115bc2e3ea @nijel nijel committed Jun 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 weblate/urls.py
View
@@ -4,6 +4,7 @@
from django.contrib.auth import views as auth_views
from django.views.generic.simple import direct_to_template
from django.conf import settings
+from django.views.generic import RedirectView
from registration.views import activate, register
@@ -21,7 +22,7 @@
urlpatterns = patterns('',
url(r'^$', 'weblate.trans.views.home'),
- url(r'^projects/$', 'django.views.generic.base.RedirectView', {'url': '/'}),
+ url(r'^projects/$', RedirectView.as_view(url = '/')),
url(r'^projects/(?P<project>[^/]*)/$', 'weblate.trans.views.show_project'),
url(r'^dictionaries/(?P<project>[^/]*)/$', 'weblate.trans.views.show_dictionaries'),

0 comments on commit 1aa6899

Please sign in to comment.