Skip to content

Commit d0c066b

Browse files
author
Matt Hughes
authored
Merge pull request #16 from edx/matthugs/change-ordering
Change ordering of history rows to be reverse chronological
2 parents 7b48f5d + cacbfa2 commit d0c066b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Change Log
1414
Unreleased
1515
~~~~~~~~~~
1616

17+
[0.9.1] - 2019-07-19
18+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19+
20+
* Reverses the ordering of CSV operation history rows
21+
1722
[0.8] - 2019-07-22
1823
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1924

super_csv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
from __future__ import absolute_import, unicode_literals
66

7-
__version__ = '0.9'
7+
__version__ = '0.9.1'
88

99
default_app_config = 'super_csv.apps.SuperCSVConfig' # pylint: disable=invalid-name

super_csv/mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,5 @@ def get_committed_history(self):
180180
"""
181181
all_history = CSVOperation.get_all_history(self, self.get_unique_path())
182182
committed_history = all_history.filter(operation='commit')
183-
history_with_users = CSVOperationSerializer.get_related_queryset(committed_history)
183+
history_with_users = CSVOperationSerializer.get_related_queryset(committed_history).order_by('-created')
184184
return CSVOperationSerializer(history_with_users, many=True).data

0 commit comments

Comments
 (0)