Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntegrityError on accented tags #277

Closed
ajendrex opened this issue Nov 21, 2014 · 3 comments
Closed

IntegrityError on accented tags #277

ajendrex opened this issue Nov 21, 2014 · 3 comments

Comments

@ajendrex
Copy link

Hello,

I added the tag "Gestion" and saved an object. Then I edited another object and tried to add the tag "Gestión" (with the proper accent), but I have an unhandled IntegrityError from the mysql connector. I think this is a bug. For now, I think I will try removing accents before saving, but that's not what I want.

Thanks for any help,
Hector.

@ajendrex
Copy link
Author

No I see that there are errors when a new tag is duplicated but has some capicalized letters, for example "Gestion", then "gestion" will raise an error :(

@buddylindsey
Copy link

@ajendrex this is a well known issue. In this comment on a PR #263 (comment) I linked to all the PR's that currently try to solve the issue. Also another one has been submitted since I left that comment.

@jdufresne
Copy link
Member

You can install the package Unidecode to solve this:

If the library is present, the slug will be normalized using it. It should solve your issue:

>>> from unidecode import unidecode
>>> unidecode("Gestión")
'Gestion'

Unfortunately, this isn't very well documented. Are you interested in contributing a documentation update to fix issue #348?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants