Re: why get_object_or_404 error is not using translation?

2024-05-19 Thread Natraj Kavander
Thank you On Sun, May 19, 2024, 1:48 AM Hossein Mahdavipour wrote: > Hi. > I am using DRF with django. In views I use get_object_or_404. When I get > a 404, the exception detail is "No %s matches the given query." > You can see the code here: > https://github.com/django/django/blob/8f205acea94e

why get_object_or_404 error is not using translation?

2024-05-18 Thread Hossein Mahdavipour
Hi. I am using DRF with django. In views I use get_object_or_404. When I get a 404, the exception detail is "No %s matches the given query." You can see the code here: https://github.com/django/django/blob/8f205acea94e93a463109e08814f78c09307f2b9/django/shortcuts.py#L88 My question is why it doe