From 774cf030c4ea794e73511ab2acc013add80069ca Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Fri, 6 Apr 2012 15:51:06 +0200 Subject: [PATCH] Removed checkbox from the heading row. fixes #222 --- admin/tables.py | 2 +- lib/tables.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/tables.py b/admin/tables.py index c5c715632..0e8d48000 100644 --- a/admin/tables.py +++ b/admin/tables.py @@ -45,7 +45,7 @@ class DomainsTable(tables.Table): class ExtensionsTable(tables.Table): idkey = "id" - selection = tables.SelectionColumn("selection", width="4%", first=True) + selection = tables.SelectionColumn("selection", width="4%", header=False) name = tables.Column("name", label=ugettext_noop("Name"), width="15%") version = tables.Column("version", label=ugettext_noop("Version"), width="6%") descr = tables.Column("description", label=ugettext_noop("Description")) diff --git a/lib/tables.py b/lib/tables.py index cca913077..c7425df9d 100644 --- a/lib/tables.py +++ b/lib/tables.py @@ -40,7 +40,9 @@ class SelectionColumn(Column): usefull to select rows for grouped actions (modify, delete, etc.) """ def __str__(self): - return "" + if self.header: + return "" + return "" def render(self, value, selection): return "" \