Fix permission group label bug for batch views

This commit is contained in:
Lance Edgar 2016-08-24 17:21:21 -05:00
parent e296bfd392
commit e3f13baaab

View file

@ -688,6 +688,11 @@ class BatchMasterView(MasterView):
url_prefix = cls.get_url_prefix() url_prefix = cls.get_url_prefix()
permission_prefix = cls.get_permission_prefix() permission_prefix = cls.get_permission_prefix()
model_title = cls.get_model_title() 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 # refresh rows data
config.add_route('{}.refresh'.format(route_prefix), '{}/{{uuid}}/refresh'.format(url_prefix)) config.add_route('{}.refresh'.format(route_prefix), '{}/{{uuid}}/refresh'.format(url_prefix))