Changes between Initial Version and Version 3 of Ticket #33179


Ignore:
Timestamp:
Oct 8, 2021, 10:44:30 AM (3 years ago)
Author:
Joel Sleppy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33179

    • Property Owner changed from nobody to Joel Sleppy
  • Ticket #33179 – Description

    initial v3  
    3434
    3535which is easier to figure out given the stack trace, but still unhelpful to a newcomer.
     36
     37I propose inspecting the first argument's class name to return a message like this:
     38
     39{{{
     40#!python
     41"First argument to render() must be an HttpRequest, not 'str'."
     42}}}
     43
     44Similar type inspection is done in other shortcut functions such as `get_object_or_404`.
Back to Top