1
0
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:
Akita Noek 2016-04-16 18:30:30 -04:00
parent 850e4c3ace
commit 849a9c08b0

View File

@ -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',