From 417e28c9c7126633404f053b7ccc8bac8c804205 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 13 Feb 2026 10:03:33 -0600 Subject: [PATCH 1/4] docs: remove duplicated doc text --- src/wuttaweb/views/master.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wuttaweb/views/master.py b/src/wuttaweb/views/master.py index c10914d..99748bc 100644 --- a/src/wuttaweb/views/master.py +++ b/src/wuttaweb/views/master.py @@ -416,8 +416,6 @@ class MasterView(View): # pylint: disable=too-many-public-methods This is optional; see also :meth:`get_row_grid_columns()`. - This is optional; see also :meth:`get_row_grid_columns()`. - .. attribute:: rows_viewable Boolean indicating whether the row model supports "viewing" - From fce7002675f2dc30400178bee6e1d77d1e1d3c30 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 13 Feb 2026 10:03:48 -0600 Subject: [PATCH 2/4] fix: fix UUID column code generator for new app table wizard --- src/wuttaweb/templates/tables/app/create.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wuttaweb/templates/tables/app/create.mako b/src/wuttaweb/templates/tables/app/create.mako index f8f8a57..f2be3ec 100644 --- a/src/wuttaweb/templates/tables/app/create.mako +++ b/src/wuttaweb/templates/tables/app/create.mako @@ -816,9 +816,9 @@ } else if (dataType.type == 'Numeric') { return `sa.Numeric(precision=${'$'}{dataType.precision}, scale=${'$'}{dataType.scale})` } else if (dataType.type == 'UUID') { - return `UUID()` + return `model.UUID()` } else if (dataType.type == '_fk_uuid_') { - return `UUID()` + return `model.UUID()` } else if (dataType.type == '_other_') { return dataType.literal } else { From a83e53afad60bf49285002ca86a0a2d9683a9b10 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 13 Feb 2026 10:07:46 -0600 Subject: [PATCH 3/4] fix: use wutta hint from model if present, for rows title --- src/wuttaweb/views/master.py | 5 +++++ tests/views/test_master.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/wuttaweb/views/master.py b/src/wuttaweb/views/master.py index 99748bc..1f919c1 100644 --- a/src/wuttaweb/views/master.py +++ b/src/wuttaweb/views/master.py @@ -3793,6 +3793,11 @@ class MasterView(View): # pylint: disable=too-many-public-methods if hasattr(cls, "row_model_title"): return cls.row_model_title + if model_class := cls.get_row_model_class(): + if hasattr(model_class, "__wutta_hint__"): + if model_title := model_class.__wutta_hint__.get("model_title"): + return model_title + return cls.get_row_model_name() @classmethod diff --git a/tests/views/test_master.py b/tests/views/test_master.py index e6a9e1e..6050edf 100644 --- a/tests/views/test_master.py +++ b/tests/views/test_master.py @@ -363,6 +363,11 @@ class TestMasterView(WebTestCase): with patch.object(mod.MasterView, "row_model_class", new=MyModel): self.assertEqual(mod.MasterView.get_row_model_title(), "Dinosaur") + # model class may have wutta hint + MyModel.__wutta_hint__ = {"model_title": "T-Rex"} + with patch.object(mod.MasterView, "row_model_class", new=MyModel): + self.assertEqual(mod.MasterView.get_row_model_title(), "T-Rex") + def test_get_row_model_title_plural(self): # error by default (since no model class) From 85f5025efd064f2aa84832551f4b29d4b87fedb1 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 13 Feb 2026 16:07:19 -0600 Subject: [PATCH 4/4] =?UTF-8?q?bump:=20version=200.27.4=20=E2=86=92=200.27?= =?UTF-8?q?.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 7 +++++++ pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fc4c1e..8d7cc1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to wuttaweb will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## v0.27.5 (2026-02-13) + +### Fix + +- use wutta hint from model if present, for rows title +- fix UUID column code generator for new app table wizard + ## v0.27.4 (2026-02-08) ### Fix diff --git a/pyproject.toml b/pyproject.toml index f907881..b45321d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "WuttaWeb" -version = "0.27.4" +version = "0.27.5" description = "Web App for Wutta Framework" readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}]