mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 03:31:10 -03: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:
|
||||
app_label = 'main'
|
||||
unique_together = (("name", "inventory"),) # FIXME: Add ('instance_id', 'inventory') after migration.
|
||||
ordering = ('inventory', 'name')
|
||||
ordering = ('name',)
|
||||
|
||||
inventory = models.ForeignKey(
|
||||
'Inventory',
|
||||
|
||||
Reference in New Issue
Block a user