Trying to create a default organization in the ready() method of the app interfieres the organization app migration.

This commit is contained in:
Roberto Rosario
2016-05-27 00:38:35 -04:00
parent ba1c5c1b17
commit bc7682ab8a

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)