From 8ad37c6ce3898f8f579104d8d4f62f61e0944ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E6=9E=AB?= Date: Mon, 5 Jan 2015 16:24:55 +0800 Subject: [PATCH] Update views.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改bug --- webroot/AutoSa/AutoSa/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/AutoSa/AutoSa/views.py b/webroot/AutoSa/AutoSa/views.py index 22b58c13e..ca9a54d19 100644 --- a/webroot/AutoSa/AutoSa/views.py +++ b/webroot/AutoSa/AutoSa/views.py @@ -766,7 +766,7 @@ def showAssets(request): assets_all = [] username = request.session.get('username') user = User.objects.get(username=username) - for asset in user.assetsuser_set.all().order_by('ip'): + for asset in user.assetsuser_set.all(): assets_all.append(asset.aid) else: assets_all = Assets.objects.all().order_by('ip')