Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bernardopires/django-tenant-schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardopires committed Jan 12, 2015
2 parents 18b2be7 + 492641b commit 45c9ee9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tenant_schemas/routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class TenantSyncRouter(object):
depending if we are syncing the shared apps or the tenant apps.
"""

def allow_syncdb(self, db, model):
def allow_migrate(self, db, model):
# the imports below need to be done here else django <1.5 goes crazy
# https://code.djangoproject.com/ticket/20704
from django.db import connection
Expand All @@ -21,3 +21,7 @@ def allow_syncdb(self, db, model):
return False

return None

def allow_syncdb(self, db, model):
# allow_syncdb was changed to allow_migrate in django 1.7
return self.allow_migrate(db, model)

0 comments on commit 45c9ee9

Please sign in to comment.