#33134: Circular contexts when rendering Form with BoundFields.
----------------------------------+--------------------------------------
Reporter: Mariusz Felisiak | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.0
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Comment (by Mariusz Felisiak):
As far as I'm aware `debug_toolbar.panels.templates.TemplatesPanel`
recursively inspects contexts and call `pprint.saferepr()` on all values,
which causes an issue after 456466d932830b096d39806e291fe23ec5ed38d5.
`Form`'s `context` contains `fields`, `BoundField`'s renders `label_tag`
with `form` in the `context` and so on :|
We can consider this a bug in `django-debug-toolbar`, but IMO we should
try to avoid circular contexts and remove `form` from `context` passed for
the `label_tag`.
--
Ticket URL: <https://code.djangoproject.com/ticket/33134#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.7096ac5fc093e5c7c02115c92c1aab3f%40djangoproject.com.