#35917: add IrSlug converter
---------------------------------+---------------------------------------
     Reporter:  ahmadrezanavaie  |                     Type:  New feature
       Status:  new              |                Component:  Core (URLs)
      Version:  5.1              |                 Severity:  Normal
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+---------------------------------------
 As an amateur, I requested to add a slug specifically for Persian and
 Arabic phrases that may also contain English to Django. These were the
 changes I made in the converters.py file. Do you think there are any
 issues?
 {{{
 class IrSlugConverter(StringConverter):
     regex = "[-a-zA-Z0-9_\u0600-\u06FF]+"


 DEFAULT_CONVERTERS = {
     "int": IntConverter(),
     "path": PathConverter(),
     "slug": SlugConverter(),
     "irslug": IrSlugConverter(),
     "str": StringConverter(),
     "uuid": UUIDConverter(),
 }
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35917>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019340f5be01-4d825e5c-cd7b-42e0-ae50-3966de739d4c-000000%40eu-central-1.amazonses.com.

Reply via email to