implement a default ordering for ActivityStream

This commit is contained in:
AlanCoding 2016-05-17 11:24:13 -04:00
parent b2d7918912
commit a7fed53efc
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')),