Skip to content

Instantly share code, notes, and snippets.

@felipe-prenholato
Created April 13, 2011 19:09
Show Gist options
  • Save felipe-prenholato/918176 to your computer and use it in GitHub Desktop.
Save felipe-prenholato/918176 to your computer and use it in GitHub Desktop.
class Router(object):
def db_for_read(self, model, **hints):
return getattr(model,'using',None)
def db_for_write(self, model, **hints):
return getattr(model,'using',None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment