Vendoring XRegexp

72 views
Skip to first unread message

Berker Peksağ

unread,
Dec 19, 2014, 11:52:15 PM12/19/14
to django-d...@googlegroups.com
While I'm working on #3729 [1], I had to update current regexes to
match unicode codepoints. Unfortunately, JavaScript has no proper
support for unicode character classes, so writing unicode aware regex
is a bit difficult: http://stackoverflow.com/a/280762

I would like to add XRegexp to django.contrib.admin. It's a popular,
well tested and small library. It will only be imported if you pass
``unicode=True`` to SlugField and define ``prepopulated_fields`` in a
ModelAdmin.

[1] https://github.com/django/django/pull/3729

--Berker

Marc Tamlyn

unread,
Dec 20, 2014, 2:57:35 AM12/20/14
to django-d...@googlegroups.com
I'm certainly in favour of not reinventing the wheel here. As a side note, I would love to have the javascript slugify functionality easily usable outside the admin.


--Berker

--
You received this message because you are subscribed to the Google Groups "Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAF4280KA9FvC082bySLnDCcUQOyJ0nJ5nXJhnO3U6Hy%2BMVVbxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages