I think that seems like a good thing to be able to configure.

On Thursday, June 23, 2022 at 7:54:56 AM UTC-7 Fab wrote:

> Hey,
>
> With JsonResponse instead of the encoder defaulting to DjangoJSONEncoder I 
> was thinking it would be nice to have a setting like DEFAULT_JSON_ENCODER 
> so I can set another one if needed without having to change all my usages 
> already set.
>
>
> https://github.com/django/django/blob/0dd29209091280ccf34e07c9468746c396b7778e/django/http/response.py#L676
>
> Is there any reason not to do this? Feels like it wont break backwards 
> compatibility.
>
> Regards,
>
> Fab
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/0eff9638-f455-4a64-a507-b47c6bd2cff0n%40googlegroups.com.
  • Jso... Fab
    • ... Steve Jorgensen
      • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
        • ... Carlton Gibson

Reply via email to