Commit f9771349 authored by Michal Čihař's avatar Michal Čihař

Move import so that billing is not unconditionally included

Fixes rb#518
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ff5a05a0
...@@ -31,7 +31,6 @@ from weblate.trans.feeds import ( ...@@ -31,7 +31,6 @@ from weblate.trans.feeds import (
) )
from weblate.trans.views.changes import ChangesView, ChangesCSVView from weblate.trans.views.changes import ChangesView, ChangesCSVView
import weblate.accounts.views import weblate.accounts.views
import weblate.billing.views
import weblate.lang.views import weblate.lang.views
import weblate.trans.admin_views import weblate.trans.admin_views
import weblate.trans.views.acl import weblate.trans.views.acl
...@@ -841,6 +840,8 @@ urlpatterns = [ ...@@ -841,6 +840,8 @@ urlpatterns = [
] ]
if 'weblate.billing' in settings.INSTALLED_APPS: if 'weblate.billing' in settings.INSTALLED_APPS:
# pylint: disable=C0413
import weblate.billing.views
urlpatterns += [ urlpatterns += [
url( url(
r'^invoice/(?P<pk>[0-9]+)/download/$', r'^invoice/(?P<pk>[0-9]+)/download/$',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment