Make redirect view pass the GET query string to the new location
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.views.generic.base import RedirectView

from stagecraft.apps.datasets import views as datasets_views
from stagecraft.libs.status import views as status_views

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^admin/', include(admin.site.urls)),
    # Note that the query string params get transparently passed to the view
    url(r'^data-sets$', datasets_views.list, name='data-sets-list'),
    url(r'^data-sets/$', RedirectView.as_view(pattern_name='data-sets-list',
                                              permanent=True,
                                              query_string=True)),
    url(r'^data-sets/(?P<name>[\w-]+)$', datasets_views.detail),
    url(r'^_status/data-sets$', datasets_views.health_check),

    url(r'^_status$', status_views.status),
)

from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.views.generic.base import RedirectView

from stagecraft.apps.datasets import views as datasets_views
from stagecraft.libs.status import views as status_views

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^admin/', include(admin.site.urls)),
    # Note that the query string params get transparently passed to the view
    url(r'^data-sets$', datasets_views.list, name='data-sets-list'),
    url(r'^data-sets/$', RedirectView.as_view(pattern_name='data-sets-list',
                                              permanent=True)),
    url(r'^data-sets/(?P<name>[\w-]+)$', datasets_views.detail),
    url(r'^_status/data-sets$', datasets_views.health_check),

    url(r'^_status$', status_views.status),
)
