wagtail-modeltranslation/wagtail_modeltranslation/tests/urls.py
Alexandre Silva 57ecc10b70 The patching of the wagtail models is now made during the init of the said models so there is no need to inherit from TranslationMixin and SnippetsMixin - ref #69
The panels of the related models within an inline panel are now being patched - ref #70
Included unit tests for both issues.
2016-03-14 15:50:39 +00:00

15 lines
429 B
Python
Executable file

# -*- coding: utf-8 -*-
from django.conf.urls import include, url
from django.conf.urls.i18n import i18n_patterns
from django.views.i18n import set_language
from wagtail.wagtailcore import urls as wagtail_urls
urlpatterns = [
url(r'^set_language/$', set_language, {},
name='set_language'),
url(r'^i18n/', include('django.conf.urls.i18n')),
]
urlpatterns += i18n_patterns(
url(r'', include(wagtail_urls)),
)