]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models, templatetags: Make tag count column in patch list optional per tag
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Tue, 19 Dec 2017 05:32:03 +0000 (16:32 +1100)
committerStephen Finucane <stephen@that.guru>
Thu, 4 Jan 2018 13:31:28 +0000 (13:31 +0000)
commit662400d03222ae46b83d256c0ea7b125a2440752
treefa7d9a8338a76b1b36a61552e64151450a120ca5
parent79934782a4ca00f193fe2a7340aba6281bed359d
models, templatetags: Make tag count column in patch list optional per tag

Add a field, show_column, to the Tag model to determine whether the tag
gets a tag count column in the patch list view. This allows the creation of
tags that will be collated when generating mboxes but won't take up space
in the patch list.

show_column will default to True to maintain the current behaviour by
default.

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Closes: #142 ("Ability to add tags that don't also have a column in the UI")
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/fixtures/default_tags.xml
patchwork/migrations/0020_tag_show_column.py [new file with mode: 0644]
patchwork/models.py
patchwork/templatetags/patch.py
patchwork/templatetags/project.py