mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-22 16:01:48 -05:00
Merge pull request #1649 from chrismeyersfsu/fix-label_alpha
order tags alphabetically
This commit is contained in:
@@ -1624,7 +1624,7 @@ class JobOptionsSerializer(BaseSerializer):
|
||||
return res
|
||||
|
||||
def _summary_field_labels(self, obj):
|
||||
return [{'id': x.id, 'name': x.name} for x in obj.labels.all().order_by('-name')[:10]]
|
||||
return [{'id': x.id, 'name': x.name} for x in obj.labels.all().order_by('name')[:10]]
|
||||
|
||||
def get_summary_fields(self, obj):
|
||||
res = super(JobOptionsSerializer, self).get_summary_fields(obj)
|
||||
|
||||
Reference in New Issue
Block a user