mirror of
https://github.com/ansible/awx.git
synced 2026-03-29 06:45:09 -02:30
Capitalize the first letters of the scan modules for the UI
This commit is contained in:
@@ -418,7 +418,7 @@ class BaseFactSerializer(MongoEngineModelSerializer):
|
|||||||
def get_fields(self):
|
def get_fields(self):
|
||||||
ret = super(BaseFactSerializer, self).get_fields()
|
ret = super(BaseFactSerializer, self).get_fields()
|
||||||
if 'module' in ret and feature_enabled('system_tracking'):
|
if 'module' in ret and feature_enabled('system_tracking'):
|
||||||
choices = [(o, o) for o in FactVersion.objects.all().only('module').distinct('module')]
|
choices = [(o, o.title()) for o in FactVersion.objects.all().only('module').distinct('module')]
|
||||||
ret['module'] = ChoiceField(source='module', choices=choices, read_only=True, required=False)
|
ret['module'] = ChoiceField(source='module', choices=choices, read_only=True, required=False)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user