mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-24 14:02:01 +00:00
perf: add created_by field
This commit is contained in:
parent
63f828da0b
commit
aad824d127
@ -15,5 +15,5 @@ class AdHocSerializer(ScopeSerializerMixin, CommonBulkModelSerializer):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = AdHoc
|
model = AdHoc
|
||||||
read_only_field = ["id", "creator", "date_created", "date_updated"]
|
read_only_field = ["id", "creator", "date_created", "date_updated", "created_by"]
|
||||||
fields = read_only_field + ["id", "name", "scope", "module", "args", "comment"]
|
fields = read_only_field + ["id", "name", "scope", "module", "args", "comment"]
|
||||||
|
@ -25,7 +25,7 @@ class PlaybookSerializer(ScopeSerializerMixin, CommonBulkModelSerializer):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Playbook
|
model = Playbook
|
||||||
read_only_fields = ["id", "date_created", "date_updated"]
|
read_only_fields = ["id", "date_created", "date_updated", "created_by"]
|
||||||
fields = read_only_fields + [
|
fields = read_only_fields + [
|
||||||
"id", 'path', 'scope', "name", "comment", "creator",
|
"id", 'path', 'scope', "name", "comment", "creator",
|
||||||
'create_method', 'vcs_url',
|
'create_method', 'vcs_url',
|
||||||
|
Loading…
Reference in New Issue
Block a user