diff --git a/chapter2/mysite/myapp/apis.py b/chapter2/mysite/myapp/apis.py index c0c3c67..0ebc68d 100644 --- a/chapter2/mysite/myapp/apis.py +++ b/chapter2/mysite/myapp/apis.py @@ -11,7 +11,7 @@ def _render_json(data): def crawl_info(request): _crawl_info = CrawlInfos.objects.order_by('-id').first() - data = json.loads(serialize('json',[_crawl_info]))[0] + data = json.loads(serialize('json',[_crawl_info]))[0]["fields"] return _render_json(data)