API v2.46, added 'is_default' field to share group types
Partial-Bug: #1823078 Change-Id: I3f2b4e6ebf715615b0f65cc26451f9ba406ba236
This commit is contained in:
parent
957240e778
commit
748b25f04f
|
@ -88,6 +88,10 @@ class ShareGroupTypesTable(tables.DataTable):
|
||||||
"is_public", verbose_name=_("Visibility"),
|
"is_public", verbose_name=_("Visibility"),
|
||||||
filters=(lambda d: 'public' if d is True else 'private', ),
|
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):
|
def get_object_display(self, share_group_type):
|
||||||
return share_group_type.name
|
return share_group_type.name
|
||||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue