When augmenting the
basehttp://docs.sqlalchemy.org/en/latest/orm/extensions/declarative.html?highlight=declarative_base#augmenting-the-baseyou
create a class, and then tell declarative_base to inherit from the
class you've created. Ex:
class MyBase(object):
def __init__(self):
#
On Mar 8, 2012, at 1:15 PM, Adam Parkin wrote:
When augmenting the base you create a class, and then tell declarative_base
to inherit from the class you've created. Ex:
class MyBase(object):
def __init__(self):
# code here
Base = declarative_base(cls=MyBase)
class