Skip to content

Commit

Permalink
Set an explicit value for permanent in the RedirectView
Browse files Browse the repository at this point in the history
Silence the DeprecationWarning in Django1.9
Fixes ocadotechnology/aimmo#58.
  • Loading branch information
mikebryant committed Apr 20, 2016
1 parent f9b0eda commit 3e67930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_autoconfig/autoconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def configure_urls(apps, index_view=None, prefixes=None):
if index_view:
from django.views.generic.base import RedirectView
urlpatterns += patterns('',
url(r'^$', RedirectView.as_view(pattern_name=index_view)),
url(r'^$', RedirectView.as_view(pattern_name=index_view, permanent=False)),
)

for app_name in apps:
Expand Down

0 comments on commit 3e67930

Please sign in to comment.