Skip to content

Commit

Permalink
Merge pull request #151 from edx/aj/update-django-admin
Browse files Browse the repository at this point in the history
perf: address django admin timeout issue
  • Loading branch information
awaisdar001 authored Jun 9, 2021
2 parents 247a6f9 + 07b42dd commit f90053f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ Unreleased

*

[2.0.3] - 2021-06-08
~~~~~~~~~~~~~~~~~~~~

Changed
+++++++

* Fixed django admin timeout issue.

[2.0.2] - 2021-05-28
~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion user_tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from django.dispatch import Signal

__version__ = '2.0.2'
__version__ = '2.0.3'

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

Expand Down
4 changes: 4 additions & 0 deletions user_tasks/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ class UserTaskArtifactAdmin(admin.ModelAdmin):
"""

list_display = ('created', 'uuid', 'status', 'name', 'text')
list_filter = ('name',)
ordering = ('-created',)
search_fields = ('uuid', 'name', 'text')
raw_id_fields = ('status',)


class UserTaskStatusAdmin(admin.ModelAdmin):
Expand All @@ -23,10 +25,12 @@ class UserTaskStatusAdmin(admin.ModelAdmin):
"""

list_display = ('created', 'uuid', 'state', 'user', 'name')
list_filter = ('state',)
ordering = ('-created',)
search_fields = (
'uuid', 'task_id', 'task_class', 'name', 'user__username', 'user__email'
)
readonly_fields = ('parent', )


admin.site.register(UserTaskArtifact, UserTaskArtifactAdmin)
Expand Down

0 comments on commit f90053f

Please sign in to comment.