mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Merge pull request #1943 from AlanCoding/863_activity_stream_sorting
Implement a default ordering for ActivityStream
This commit is contained in:
commit
c158c9dfe3
18
awx/main/migrations/0023_v300_activity_stream_ordering.py
Normal file
18
awx/main/migrations/0023_v300_activity_stream_ordering.py
Normal 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',)},
|
||||||
|
),
|
||||||
|
]
|
@ -16,6 +16,7 @@ class ActivityStream(models.Model):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label = 'main'
|
app_label = 'main'
|
||||||
|
ordering = ('pk',)
|
||||||
|
|
||||||
OPERATION_CHOICES = [
|
OPERATION_CHOICES = [
|
||||||
('create', _('Entity Created')),
|
('create', _('Entity Created')),
|
||||||
|
Loading…
Reference in New Issue
Block a user