Trying to create a default organization in the ready() method of the app interfieres the organization app migration.
This commit is contained in:
@@ -6,14 +6,7 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
|
|
||||||
from common.apps import MayanAppConfig
|
from common.apps import MayanAppConfig
|
||||||
|
|
||||||
from .utils import create_default_organization
|
|
||||||
|
|
||||||
|
|
||||||
class OrganizationApp(AppConfig):
|
class OrganizationApp(AppConfig):
|
||||||
name = 'organizations'
|
name = 'organizations'
|
||||||
verbose_name = _('Organizations')
|
verbose_name = _('Organizations')
|
||||||
|
|
||||||
def ready(self):
|
|
||||||
super(OrganizationApp, self).ready()
|
|
||||||
Organization = self.get_model('Organization')
|
|
||||||
create_default_organization(verbosity=0)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user