diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 963fe5b8da..c42bb77967 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -343,7 +343,7 @@ class Host(CommonModelNameNotUnique, ResourceMixin): class Meta: app_label = 'main' unique_together = (("name", "inventory"),) # FIXME: Add ('instance_id', 'inventory') after migration. - ordering = ('inventory', 'name') + ordering = ('name',) inventory = models.ForeignKey( 'Inventory',