Changes between Initial Version and Version 1 of Ticket #35098, comment 3


Ignore:
Timestamp:
Jan 9, 2024, 2:15:01 PM (10 months ago)
Author:
Yawar Quadir Amin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35098, comment 3

    initial v1  
    44# Obviously, this is used as a handler for a route in urls.py
    55def handle_foo(request: HttpRequest, **kwargs: dict[str, Any]) -> HttpResponse:
    6   do_something(json.loads(request.body.decode('utf-8'))['field_i_want'])
     6  txt = do_something(json.loads(request.body.decode('utf-8'))['field_i_want'])
     7  return JsonResponse({'ok': txt})
    78}}}
    89
Back to Top