diff --git a/taiga/contrib_routers.py b/taiga/contrib_routers.py deleted file mode 100644 index 85b869dc..00000000 --- a/taiga/contrib_routers.py +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (C) 2014-2016 Andrey Antukh -# Copyright (C) 2014-2016 Jesús Espino -# Copyright (C) 2014-2016 David Barragán -# Copyright (C) 2014-2016 Alejandro Alonso -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . - -from taiga.base import routers - -router = routers.DefaultRouter(trailing_slash=False) diff --git a/taiga/projects/services/modules_config.py b/taiga/projects/services/modules_config.py index 46cf6b9a..b850be56 100644 --- a/taiga/projects/services/modules_config.py +++ b/taiga/projects/services/modules_config.py @@ -24,7 +24,7 @@ from django.conf import settings def get_modules_config(project): modules_config, created = models.ProjectModulesConfig.objects.get_or_create(project=project) - if created: + if created or modules_config.config == None: modules_config.config = {} for key, configurator_function_name in settings.PROJECT_MODULES_CONFIGURATORS.items(): diff --git a/taiga/urls.py b/taiga/urls.py index 14eaf3a4..23afa70f 100644 --- a/taiga/urls.py +++ b/taiga/urls.py @@ -20,7 +20,6 @@ from django.conf.urls import patterns, include, url from django.contrib import admin from .routers import router -from .contrib_routers import router as contrib_router ############################################## @@ -29,7 +28,6 @@ from .contrib_routers import router as contrib_router urlpatterns = [ url(r'^api/v1/', include(router.urls)), - url(r'^api/v1/', include(contrib_router.urls)), url(r'^api/v1/api-auth/', include('taiga.base.api.urls', namespace='api')), url(r'^admin/', include(admin.site.urls)), ]