Commit 634c5f3220f58cbd9c8610b5a60142b071356deb

Authored by Lucas Moura
1 parent aa5f7fe1
Exists in removing_namespace

Removed namespace from plugin settings

Signed-off-by: Lucas Moura <lucas.moura128@gmail.com>
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
colab/plugins/utils/apps.py
1 1  
2 2 from django.apps import AppConfig
  3 +from ..conf import get_plugin_config
3 4  
4 5  
5 6 class ColabPluginAppConfig(AppConfig):
6 7 colab_proxied_app = True
  8 + namespace = None
  9 +
  10 + def __init__(self, app_name, app_module):
  11 + super(ColabPluginAppConfig, self).__init__(app_name, app_module)
  12 + self.set_namespace()
  13 +
  14 + def set_namespace(self):
  15 + config = get_plugin_config(self.name)
  16 + config['urls']['namespace'] = self.namespace
7 17  
8 18 def register_signal(self):
9 19 pass
... ...