# Safe repr for error pages

**URL:** <https://forum.djangoproject.com/t/safe-repr-for-error-pages/39078>\
**Category:** Django Internals\
**Created:** [February 24, 2025, 9:08am UTC](https://forum.djangoproject.com/t/safe-repr-for-error-pages/39078 "2025-02-24T09:08:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [February 24, 2025, 9:25am UTC](https://forum.djangoproject.com/t/safe-repr-for-error-pages/39078/2 "2025-02-24T09:25:55Z")

</div>

This seems like the same issue are you’ve posted before… — even if it’s a variant, it’s related. It would be good to try and keep related topics all together, rather than creating small variant threads. Duplicates force people to go and find the old conversation, to remember what was said. They also risk the reasons given previously being forgotten/overlooked.

> [@Slight modification to default \`\_\_repr\_\_\` for models?](https://forum.djangoproject.com/t/slight-modification-to-default-repr-for-models/35323/3):
>
> Past proposals to change Model.\_\_repr\_\_() have been rejected. [https://code.djangoproject.com/ticket/20448](https://code.djangoproject.com/ticket/20448)[https://groups.google.com/g/django-developers/c/UNKFMg6DO5s/m/3nZECHyRAgAJ](https://groups.google.com/g/django-developers/c/UNKFMg6DO5s/m/3nZECHyRAgAJ)[https://code.djangoproject.com/ticket/28839](https://code.djangoproject.com/ticket/28839)[https://groups.google.com/g/django-developers/c/7Jqzwg5nt-c/m/oYxx9CgBBQAJ](https://groups.google.com/g/django-developers/c/7Jqzwg5nt-c/m/oYxx9CgBBQAJ)[https://groups.google.com/g/django-developers/c/4yd8wBD3BiY/m/139xyLaEBAAJ](https://groups.google.com/g/django-developers/c/4yd8wBD3BiY/m/139xyLaEBAAJ)

There have been other discussions in this space too. It would be worth trying to corral the considerations to see if we can resolve/improve the underlying issue.

---

_[View the full topic](https://forum.djangoproject.com/t/safe-repr-for-error-pages/39078)._
