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

Add Slovak character map for JS slug generation #4897

Closed
wants to merge 1 commit into from

Conversation

chosak
Copy link
Member

@chosak chosak commented Nov 14, 2018

Porting of Django PR #9325, which fixes Django ticket #28768. These changes were made in Django 2.1.

This adds support for certain Slovak characters when auto-generating slugs for new pages. This logic is only triggered if settings.WAGTAIL_ALLOW_UNICODE_SLUGS is set to False.

To test, create a new page and enter a title like "Vŕba". The page's slug field will be automatically set to "vrba". In the previous behavior, this would instead be automatically set to "vba".

Porting of Django PR wagtail#9325, which fixes Django ticket #28768. These
changes were made in Django 2.1.

This adds support for certain Slovak characters when auto-generating
slugs for new pages. This logic is only triggered if
settings.WAGTAIL_ALLOW_UNICODE_SLUGS is set to False; see

http://docs.wagtail.io/en/v2.1.1/advanced_topics/settings.html#unicode-page-slugs

To test, create a new page and enter a title like "Vŕba". The
page's slug field will be automatically set to "vrba". In the
previous behavior, this would instead be automatically set to "vba".

django/django#9325
https://code.djangoproject.com/ticket/28768
@gasman
Copy link
Collaborator

gasman commented Nov 16, 2018

Merged in 17fc5cc - thanks @chosak!

@gasman gasman closed this Nov 16, 2018
@chosak chosak deleted the urlify-slovak-map branch November 16, 2018 18:33
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

Successfully merging this pull request may close these issues.

2 participants