diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d7cc1e..2fc4c1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,6 @@ 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 b45321d..f907881 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "WuttaWeb" -version = "0.27.5" +version = "0.27.4" description = "Web App for Wutta Framework" readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}] diff --git a/src/wuttaweb/templates/tables/app/create.mako b/src/wuttaweb/templates/tables/app/create.mako index f2be3ec..f8f8a57 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 `model.UUID()` + return `UUID()` } else if (dataType.type == '_fk_uuid_') { - return `model.UUID()` + return `UUID()` } else if (dataType.type == '_other_') { return dataType.literal } else { diff --git a/src/wuttaweb/views/master.py b/src/wuttaweb/views/master.py index 1f919c1..c10914d 100644 --- a/src/wuttaweb/views/master.py +++ b/src/wuttaweb/views/master.py @@ -416,6 +416,8 @@ 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" - @@ -3793,11 +3795,6 @@ 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 6050edf..e6a9e1e 100644 --- a/tests/views/test_master.py +++ b/tests/views/test_master.py @@ -363,11 +363,6 @@ 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)