Changes between Initial Version and Version 1 of Ticket #24619, comment 5


Ignore:
Timestamp:
Jan 16, 2020, 9:12:15 AM (5 years ago)
Author:
Carlton Gibson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24619, comment 5

    initial v1  
    33I think the vast majority of this ticket covers 500 responses. #30752 (Django 3.1) allows providing a custom ExceptionReporter sublcass. That will be the place to add the logic needed to return the desired response format.
    44
    5 Doing similar for 404s would require a rewrite of the handler to use a reporter class, similar to the 500 case. I don't think that's in scope for this issue. If there's a genuine demand for that, happy to see it suggested in a separate ticket. But... given the age of this one, I suspect most (all?) users are using DRF for this kind of case these days, and that there is, in fact, no demand for this change.
     5Doing similar for 404s would require a rewrite of the handler to use a reporter class, similar to the 500 case. I don't think that's in scope for this issue. If there's a genuine demand for that, happy to see it suggested in a separate ticket. But... given the age of this one, I suspect most (all?) users are using DRF for this kind of case these days, and that there is, in fact, no demand for that change.
Back to Top