'Method to see if the action is allowed for a certain type of data.
Only affects mixed data type tables.'

def data_type_matched(self, datum):

    if datum:
        action_data_types = getattr(self, 'allowed_data_types', [])
        if action_data_types:
            datum_type = getattr(datum, self.table._meta.data_type_name, None)
            if (datum_type and (datum_type not in action_data_types)):
                return False
    return True
