Update views.py

修改bug
pull/2/head
蓝枫 2015-01-05 16:24:55 +08:00
parent aba3a2222d
commit 8ad37c6ce3
1 changed files with 1 additions and 1 deletions

View File

@ -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')