@staticmethod
def __validate_model(mdl):
    """
			__validate_model - Internal function to check that model is of correct type.

			Uses a class variable that has been defined for IndexedRedisModel s for a long time, not the type itself, to prevent circular imports etc.
	
			@param mdl - type to validate
		"""
    if not hasattr(mdl, '_is_ir_model'):
        raise ValueError('Model %s is not an IndexedRedisModel' % (str(mdl.
            __class__.__name__),))
