mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 19:37:38 -02:30
Drop our implicit order by inventory for Host models
Sorting by inventory (which is really by inventory.name) which is untenable for a large number of hosts
This commit is contained in:
@@ -343,7 +343,7 @@ class Host(CommonModelNameNotUnique, ResourceMixin):
|
|||||||
class Meta:
|
class Meta:
|
||||||
app_label = 'main'
|
app_label = 'main'
|
||||||
unique_together = (("name", "inventory"),) # FIXME: Add ('instance_id', 'inventory') after migration.
|
unique_together = (("name", "inventory"),) # FIXME: Add ('instance_id', 'inventory') after migration.
|
||||||
ordering = ('inventory', 'name')
|
ordering = ('name',)
|
||||||
|
|
||||||
inventory = models.ForeignKey(
|
inventory = models.ForeignKey(
|
||||||
'Inventory',
|
'Inventory',
|
||||||
|
|||||||
Reference in New Issue
Block a user