-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Janneke Janssen
committed
Jul 3, 2017
1 parent
127f18f
commit 8a97296
Showing
5 changed files
with
89 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
from __future__ import absolute_import, unicode_literals | ||
|
||
from django.conf.urls import url | ||
from wagtail import VERSION as WAGTAIL_VERSION | ||
|
||
from wagtailtrans.views import translation | ||
if WAGTAIL_VERSION < (1, 11): | ||
from wagtailtrans.views.translation import ( | ||
DeprecatedTranslationView as TranslationView | ||
) | ||
else: | ||
from wagtailtrans.views.translation import TranslationView | ||
|
||
app_name = 'wagtailtrans' | ||
|
||
urlpatterns = [ | ||
url(r'^(?P<instance_id>\d+)/add/(?P<language_code>[^/]+)/$', | ||
translation.TranslationView.as_view(), name='add'), | ||
TranslationView.as_view(), name='add'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters