'Use the StudentModuleHistoryExtendedRouter.DATABASE_NAME if the model is StudentModuleHistoryExtended.'

def db_for_write(self, model, **hints):

    if self._is_csmh(model):
        return self.DATABASE_NAME
    else:
        return None
