def format(self, method, data):
        ''' Calls format on list or detail '''
        if data is None:
            if method == 'GET':
                raise NotFound()
            return ''

        return self._meta.formatter.format(data)
Calls format on list or detail