fix: use wutta hint for plural row model title in master view
This commit is contained in:
parent
c18ee7a3bc
commit
d8ffb4497b
2 changed files with 12 additions and 0 deletions
|
|
@ -396,6 +396,11 @@ class TestMasterView(WebTestCase):
|
|||
with patch.object(mod.MasterView, "row_model_class", new=MyModel, create=True):
|
||||
self.assertEqual(mod.MasterView.get_row_model_title_plural(), "Dinosaurs")
|
||||
|
||||
# model class may have wutta hint
|
||||
MyModel.__wutta_hint__ = {"model_title_plural": "T-Rexes"}
|
||||
with patch.object(mod.MasterView, "row_model_class", new=MyModel):
|
||||
self.assertEqual(mod.MasterView.get_row_model_title_plural(), "T-Rexes")
|
||||
|
||||
##############################
|
||||
# support methods
|
||||
##############################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue