'Get record by ID.'

@classmethod
def get_by_id(cls, record_id):

    if any(((isinstance(record_id, basestring) and record_id.isdigit()), isinstance(record_id, (int, float)))):
        return cls.query.get(int(record_id))
    return None
