diff options
author | Kirill Yakovenko <kirill.yakovenko@gmail.com> | 2016-11-01 22:45:49 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-01 22:45:49 +0700 |
commit | d1e883ceb9272e0cb9c26801a706da12f1cebb6a (patch) | |
tree | b7bc1c3a9b5ac46ae15ff373d2c896a9e2efd409 /omaha_server/omaha/tables.py | |
parent | b2907055db8037ef0701fc10b5a0fb865fd82afd (diff) | |
parent | 9e468645314a1a9f5108e492fc0906b52638964f (diff) | |
download | omaha-server-master.zip omaha-server-master.tar.gz omaha-server-master.tar.bz2 |
Merge pull request #230 from Crystalnix/devHEADorigin/masterorigin/HEADmaster
Sortable columns, PATCH request for versions, Hotfixs
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') |