mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-07 02:10:23 +00:00
perf: labels 支持颜色
This commit is contained in:
@@ -14,8 +14,8 @@ class LabelSerializer(BulkOrgResourceModelSerializer):
|
||||
class Meta:
|
||||
model = Label
|
||||
fields = [
|
||||
'id', 'name', 'value', 'res_count', 'comment',
|
||||
'date_created', 'date_updated'
|
||||
'id', 'name', 'value', 'color', 'res_count',
|
||||
'comment', 'date_created', 'date_updated'
|
||||
]
|
||||
read_only_fields = ('date_created', 'date_updated', 'res_count')
|
||||
extra_kwargs = {
|
||||
|
Reference in New Issue
Block a user