mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
removed empty row
This commit is contained in:
parent
76db7d4c59
commit
c6240f4514
|
@ -219,7 +219,6 @@ Edit the `snippet/views.py` file, and add the following.
|
|||
"""
|
||||
An HttpResponse that renders it's content into JSON.
|
||||
"""
|
||||
|
||||
def __init__(self, data, **kwargs):
|
||||
content = JSONRenderer().render(data)
|
||||
kwargs['content_type'] = 'application/json'
|
||||
|
|
Loading…
Reference in New Issue
Block a user