File: func_json_response.txt

package info (click to toggle)
pylint-django 2.0.13-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 660 kB
  • sloc: python: 1,807; sh: 13; makefile: 5
file content (4 lines) | stat: -rw-r--r-- 465 bytes parent folder | download | duplicates (4)
1
2
3
4
http-response-with-json-dumps:9:say_yes:Instead of HttpResponse(json.dumps(data)) use JsonResponse(data)
http-response-with-json-dumps:14:say_yes2:Instead of HttpResponse(json.dumps(data)) use JsonResponse(data)
redundant-content-type-for-json-response:23:redundant_content_type:Redundant content_type parameter for JsonResponse()
http-response-with-content-type-json:28:content_type_json:Instead of HttpResponse(content_type='application/json') use JsonResponse()