def element(self, request, elem): self.request = request return SerializeResponder.element(self, request, elem)
def list(self, request, queryset, page=None): self.request = request return SerializeResponder.list(self, request, queryset, page)
def __init__(self, model_list = None, paginate_by=None, allow_empty=False): self.model_list = model_list SerializeResponder.__init__(self, 'xobj', 'text/plain', paginate_by=paginate_by, allow_empty=allow_empty)