mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
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:
parent
850e4c3ace
commit
849a9c08b0
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user