1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Merge pull request #1943 from AlanCoding/863_activity_stream_sorting

Implement a default ordering for ActivityStream
This commit is contained in:
Alan Rominger 2016-05-18 16:07:19 -04:00
commit c158c9dfe3
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0022_v300_adhoc_extravars'),
]
operations = [
migrations.AlterModelOptions(
name='activitystream',
options={'ordering': ('pk',)},
),
]

View File

@ -16,6 +16,7 @@ class ActivityStream(models.Model):
class Meta:
app_label = 'main'
ordering = ('pk',)
OPERATION_CHOICES = [
('create', _('Entity Created')),