﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26945	i18n_patterns returns tuple instead of list	Alex Hill	nobody	"In Django 1.10, `i18n_patterns()` returns a tuple when USE_I18N is False.

I think it should always return a list, given the docs prescribe the use of lists for urlpatterns:

  urlpatterns should be a Python list of url() instances.

As it stands the example given for the usage of `i18n_patterns()` wouldn't work with i18n disabled:

{{{
#!python
from django.conf.urls import include, url
from django.conf.urls.i18n import i18n_patterns

from about import views as about_views
from news import views as news_views
from sitemap.views import sitemap

urlpatterns = [
    url(r'^sitemap\.xml$', sitemap, name='sitemap-xml'),
]

news_patterns = ([
    url(r'^$', news_views.index, name='index'),
    url(r'^category/(?P<slug>[\w-]+)/$', news_views.category, name='category'),
    url(r'^(?P<slug>[\w-]+)/$', news_views.details, name='detail'),
], 'news')

urlpatterns += i18n_patterns(
    url(r'^about/$', about_views.main, name='about'),
    url(r'^news/', include(news_patterns, namespace='news')),
)
}}}"	Bug	closed	Core (URLs)	dev	Release blocker	fixed			Accepted	1	0	0	0	0	0
