From e3f13baaab59ed9587eb1712fe2b9a560538fac3 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 24 Aug 2016 17:21:21 -0500 Subject: [PATCH] Fix permission group label bug for batch views --- tailbone/views/batch.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tailbone/views/batch.py b/tailbone/views/batch.py index b8f56b91..39a9a742 100644 --- a/tailbone/views/batch.py +++ b/tailbone/views/batch.py @@ -688,6 +688,11 @@ class BatchMasterView(MasterView): url_prefix = cls.get_url_prefix() permission_prefix = cls.get_permission_prefix() model_title = cls.get_model_title() + model_title_plural = cls.get_model_title_plural() + + # TODO: currently must do this here (in addition to `_defaults()` or + # else the perm group label will not display correctly... + config.add_tailbone_permission_group(permission_prefix, model_title_plural, overwrite=False) # refresh rows data config.add_route('{}.refresh'.format(route_prefix), '{}/{{uuid}}/refresh'.format(url_prefix))