diff options
author | Andrey Mekin <amekin@crystalnix.com> | 2016-09-26 18:44:35 +0600 |
---|---|---|
committer | Andrey Mekin <amekin@crystalnix.com> | 2016-10-04 16:52:42 +0600 |
commit | d74f6cb1b8313d40ce6f043ef004d27c6ee31366 (patch) | |
tree | b2d4736938f9f86113aa30d9332a5b61bc7016ba /omaha_server/omaha/tables.py | |
parent | 5004d1501d1350101a740714cdeabfb3b9b1d8ff (diff) | |
download | omaha-server-d74f6cb1b8313d40ce6f043ef004d27c6ee31366.zip omaha-server-d74f6cb1b8313d40ce6f043ef004d27c6ee31366.tar.gz omaha-server-d74f6cb1b8313d40ce6f043ef004d27c6ee31366.tar.bz2 |
Make columns on the Version Usage page sortable
Diffstat (limited to 'omaha_server/omaha/tables.py')
-rw-r--r-- | omaha_server/omaha/tables.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/omaha_server/omaha/tables.py b/omaha_server/omaha/tables.py index ea7cc06..e1a4c30 100644 --- a/omaha_server/omaha/tables.py +++ b/omaha_server/omaha/tables.py @@ -75,12 +75,12 @@ class VersionsUsageTable(tables.Table): nextversion = tables.Column(verbose_name='Current Version') last_update = tables.DateTimeColumn(accessor='request.created', order_by='-request__created', verbose_name='Last update') - ip = tables.Column(accessor='request.ip') - platform = tables.Column(accessor='request.os.platform') + ip = tables.Column(accessor='request.ip', verbose_name='IP') + platform = tables.Column(accessor='request.os.platform', verbose_name='Platform') class Meta: model = AppRequest - orderable = False + orderable = True attrs = {'class': 'paleblue table table-striped table-bordered table-hover table-condensed', 'id': 'usage-table'} fields = ('userid', 'nextversion', 'last_update', 'ip', 'platform') |