[PATCH v4 3/9] templatetags: add utils template filters and tags

Stephen Finucane stephen at that.guru
Sat Aug 21 08:17:03 AEST 2021


On Fri, 2021-08-20 at 04:50 +0000, Raxel Gutierrez wrote:
> Add utils.py file to create template filters and tags that can be used
> by most if not all objects in Patchwork. In particular, add a template
> filter to get the plural verbose name of a model and add a template tag
> that returns whether an object is editable by the current user. These
> utilities will be used in an upcoming patch that adds the `addressed`
> status label to patch and cover comments.
> 
> Signed-off-by: Raxel Gutierrez <raxel at google.com>

Need to see the caller but otherwise LGTM.

Reviewed-by: Stephen Finucane <stephen at that.guru>



More information about the Patchwork mailing list