def getModel(db_table):


    class MyClassMetaclass(models.base.ModelBase):

        def __new__(cls, name, bases, attrs):
            name += db_table
return models.base.ModelBase.__new__(cls, name, bases, attrs)


class MyClass(models.Model, metaclass=MyClassMetaclass):
    pass


class Meta:
    db_table = db_table
return MyClass
Одна модель Django, несколько таблиц?