Skip to content

Commit 2881b6b

Browse files
address issue where ordering attribute must be a tuple or list
1 parent 14d4b0d commit 2881b6b

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

CHANGELOG.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@ Unreleased
1616

1717
*
1818

19+
[0.1.9] - 2019-08-27
20+
~~~~~~~~~~~~~~~~~~~~
21+
22+
Changed
23+
+++++++
24+
25+
* Fix issue with `UserTaskArtifactAdmin` and `UserTaskStatusAdmin` where `ordering` attribute must be a tuple or list.
26+
27+
28+
[0.1.8] - 2019-08-22
29+
~~~~~~~~~~~~~~~~~~~~
30+
31+
Changed
32+
+++++++
33+
34+
* Improve list display for `ModelAdmin`.
35+
36+
1937
[0.1.7] - 2019-05-29
2038
~~~~~~~~~~~~~~~~~~~~
2139

user_tasks/__init__.py

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

77
from django.dispatch import Signal
88

9-
__version__ = '0.1.8'
9+
__version__ = '0.1.9'
1010

1111
default_app_config = 'user_tasks.apps.UserTasksConfig' # pylint: disable=invalid-name
1212

user_tasks/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class UserTaskArtifactAdmin(admin.ModelAdmin):
1616
"""
1717

1818
list_display = ('created', 'uuid', 'status', 'name', 'text')
19-
ordering = ('created')
19+
ordering = ('created',)
2020
search_fields = ('uuid', 'name', 'text')
2121

2222

@@ -26,7 +26,7 @@ class UserTaskStatusAdmin(admin.ModelAdmin):
2626
"""
2727

2828
list_display = ('created', 'uuid', 'state', 'user', 'name')
29-
ordering = ('created')
29+
ordering = ('created',)
3030
search_fields = ('uuid', 'task_id', 'task_class', 'user', 'name')
3131

3232

0 commit comments

Comments
 (0)