Merge "API v2.46, added 'is_default' field to share group types"

This commit is contained in:
Zuul 2021-09-03 22:33:08 +00:00 committed by Gerrit Code Review
commit 299e102ba5
2 changed files with 9 additions and 0 deletions

View File

@ -88,6 +88,10 @@ class ShareGroupTypesTable(tables.DataTable):
"is_public", verbose_name=_("Visibility"),
filters=(lambda d: 'public' if d is True else 'private', ),
)
is_default = tables.Column(
"is_default", verbose_name=_("Is default"),
filters=(lambda d: 'Yes' if d is True else '-', ),
)
def get_object_display(self, share_group_type):
return share_group_type.name

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds is_default field to share group types list. the Is_default Column
will show 'Yes' if the share group type is default share group type.