diff --git a/tailbone/grids/core.py b/tailbone/grids/core.py index 3a17493f..5cb8f8d2 100644 --- a/tailbone/grids/core.py +++ b/tailbone/grids/core.py @@ -128,12 +128,19 @@ class Grid(object): if key in self.columns: self.columns.remove(key) + def append(self, field): + self.columns.append(field) + def insert_before(self, field, newfield): self.columns.insert_before(field, newfield) def insert_after(self, field, newfield): self.columns.insert_after(field, newfield) + def replace(self, oldfield, newfield): + self.insert_after(oldfield, newfield) + self.hide_column(oldfield) + def set_joiner(self, key, joiner): if joiner is None: self.joiners.pop(key, None)