def export_publisher_activities(publisher_id): queryset = Activity.objects.all().filter(ready_to_publish=True, publisher_id=publisher_id) serializer = ActivityXMLSerializer(queryset, many=True) xml_renderer = XMLRenderer() xml = xml_renderer.render(serializer.data) return xml
def export_publisher_activities(publisher_id): queryset = Activity.objects.all().filter( ready_to_publish=True, publisher_id=publisher_id ) serializer = ActivityXMLSerializer(queryset, many=True) xml_renderer = XMLRenderer() xml = xml_renderer.render(serializer.data) return xml