mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-03-16 21:30:24 +00:00
allow language variant with @ in url
This commit is contained in:
parent
9405a1e5cc
commit
51dc6bf02e
1 changed files with 2 additions and 2 deletions
|
|
@ -27,12 +27,12 @@ urlpatterns = [
|
|||
name="rosetta-file-list",
|
||||
),
|
||||
re_path(
|
||||
r"^files/(?P<po_filter>[\w-]+)/(?P<lang_id>[\w\-_\.]+)/(?P<idx>\d+)/$",
|
||||
r"^files/(?P<po_filter>[\w-]+)/(?P<lang_id>[\w\-_\.@]+)/(?P<idx>\d+)/$",
|
||||
views.TranslationFormView.as_view(),
|
||||
name="rosetta-form",
|
||||
),
|
||||
re_path(
|
||||
r"^files/(?P<po_filter>[\w-]+)/(?P<lang_id>[\w\-_\.]+)/(?P<idx>\d+)/download/$",
|
||||
r"^files/(?P<po_filter>[\w-]+)/(?P<lang_id>[\w\-_\.@]+)/(?P<idx>\d+)/download/$",
|
||||
views.TranslationFileDownload.as_view(),
|
||||
name="rosetta-download-file",
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue