mirror of
https://github.com/ansible/awx.git
synced 2026-08-05 20:40:01 -02:30
Adding sensible ordering to common models.
https://trello.com/c/tTwRM2VV/102-tower-api-teams-endpoint-does-not-sort-consistently
This commit is contained in:
@@ -138,6 +138,7 @@ class JobTemplate(UnifiedJobTemplate, JobOptions):
|
||||
|
||||
class Meta:
|
||||
app_label = 'main'
|
||||
ordering = ('name',)
|
||||
|
||||
host_config_key = models.CharField(
|
||||
max_length=1024,
|
||||
@@ -195,6 +196,7 @@ class Job(UnifiedJob, JobOptions):
|
||||
|
||||
class Meta:
|
||||
app_label = 'main'
|
||||
ordering = ('id',)
|
||||
|
||||
job_template = models.ForeignKey(
|
||||
'JobTemplate',
|
||||
|
||||
Reference in New Issue
Block a user