Skip to content

Commit

Permalink
Merge pull request #12 from Ekleog/master
Browse files Browse the repository at this point in the history
Future-proof to django 1.9 by renaming allow_syncdb to allow_migrate
  • Loading branch information
fishilico committed Oct 12, 2015
2 parents d2c668f + 737f66b commit eac4d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/backend/dbrouter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def allow_relation(self, obj1, obj2, **hints):
return True
return None

def allow_syncdb(self, db, model):
def allow_migrate(self, db, model):
if db == 'platal1' or self._is_platal1_model(model):
return False
return None
Expand Down

0 comments on commit eac4d0d

Please sign in to comment.