Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion openwisp_controller/connection/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,15 @@ class CommandInline(admin.StackedInline):
verbose_name_plural = verbose_name
fields = ['status', 'type', 'input_data', 'output_data', 'created', 'modified']
readonly_fields = ['input_data', 'output_data']
max_num = 30
# hack for openwisp-monitoring integration
# TODO: remove when this issue solved:
# https://github.com/theatlantic/django-nested-admin/issues/128#issuecomment-665833142
sortable_options = {'disabled': True}

def get_queryset(self, request, select_related=True):
"""
Return recent commands for this device
Return the most recent commands for this device
(created within the last 7 days)
"""
qs = super().get_queryset(request)
Expand Down
Loading