Closed julianwachholz closed 9 years ago
Julian, thanks for reporting!
According to https://docs.djangoproject.com/en/dev/ref/urls/#django.conf.urls.patterns, not just prefix
, but entire patterns()
function will be deprecated.
But, according to i18n docs i18n_patterns()
function remains, but prefix
argument to i18n_patterns()
will be deprecated since django v1.8 and in django v2.0 will be suppressed.
So, to be able to support future and previous django versions, you suggest to make prefix
argument to solid_i18n_patterns()
optional.
Am i right?
The
prefix
argument to pattern() functions will be deprecated, see https://docs.djangoproject.com/en/dev/ref/urls/#django.conf.urls.patterns for info.Since i18n_patterns rely on more than just the prefix, the argument should be made optional. E.g. if first argument is a URL instance just add it to the list and carry on.