Capitalize the first letters of the scan modules for the UI

This commit is contained in:
Matthew Jones 2015-05-29 10:47:43 -04:00
parent 20e85a6d34
commit 8795f06801

View File

@ -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