mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Capitalize the first letters of the scan modules for the UI
This commit is contained in:
parent
20e85a6d34
commit
8795f06801
@ -418,7 +418,7 @@ class BaseFactSerializer(MongoEngineModelSerializer):
|
||||
def get_fields(self):
|
||||
ret = super(BaseFactSerializer, self).get_fields()
|
||||
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)
|
||||
return ret
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user