﻿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
28150	Behavour of django.utils.text.slugify is not consistent between Python 2 and 3 when passed a tuple	Marcos Diez	nobody	"After hours of debugging, I realized the behavior of django.utils.text.slugify is not consistent.

On Python 2.7.12 and Python 3.5.2 ( Ubuntu 16.04 LTS)

{{{
from django.utils.text import slugify


original_value = ('test trial', )
slug = slugify(original_value)
print(slug) # returns ""test-trial""

}}}

but on Python 2.7.12

{{{
from __future__ return unicode_literals

from django.utils.text import slugify


original_value = ('test trial', )
slug = slugify(original_value)
print(slug) # returns ""utest-trial""

}}}

This is serious and inconsistent.
Fixing it is not trivial either because it may cause backwards incompatibility.

If I was in charge I would either:
- Do nothing since python 2.7 will be deprecated
- Deprecate slugify and create slugify2 which is not affected by this bug



Thanks for your time,
Marcos Diez"	Bug	closed	Utilities	1.11	Normal	wontfix	slugify unicode enconding		Unreviewed	0	0	0	0	0	0
