Don't create a default organization on each initialization of the organization app. GitLab issue #297.

This commit is contained in:
Roberto Rosario
2016-06-06 02:54:32 -04:00
parent 017dc67d3c
commit 331a4da3b3

View File

@@ -6,14 +6,7 @@ from django.utils.translation import ugettext_lazy as _
from common.apps import MayanAppConfig
from .utils import create_default_organization
class OrganizationApp(AppConfig):
name = 'organizations'
verbose_name = _('Organizations')
def ready(self):
super(OrganizationApp, self).ready()
Organization = self.get_model('Organization')
create_default_organization(verbosity=0)