#28265 closed Bug (fixed)
Template widget rendering: "Add the renderer argument ..." false positive when using **kwargs
Reported by: | Jon Dufresne | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | 1.11 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have a custom widget with the following method:
def render(self, *args, **kwargs): self.pre_render_setup(*args, **kwargs) try: super().render(*args, **kwargs) finally: self.post_render_cleanup(*args, **kwargs)
Starting with Django 1.11 every use of this widget spews the following warning:
.../venv/lib64/python3.5/site-packages/django/forms/boundfield.py:41: RemovedInDjango21Warning: Add the `renderer` argument to the render() method of <class '...'>. It will be mandatory in Django 2.1.
As I'm using **kwargs
, the renderer
value is correctly passed on to the render()
function. This warning should be silenced.
Change History (4)
comment:1 by , 7 years ago
Severity: | Normal → Release blocker |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 7 years ago
Has patch: | set |
---|
Note:
See TracTickets
for help on using tickets.
PR