Skip to content

Instantly share code, notes, and snippets.

Created December 24, 2013 10:20
Show Gist options
  • Save anonymous/8111327 to your computer and use it in GitHub Desktop.
Save anonymous/8111327 to your computer and use it in GitHub Desktop.
registry = Registry()
registry.register_multidb_bases(
'BaseModel',
admin=AdminBase,
front=FrontBase,
shared=SharedBase
)
@registry.register_model('BaseModel')
def Media(models):
id = Column(Integer, primary_key=True, autoincrement=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment