简单修改

pull/6/head
ibuler 2015-04-18 19:15:53 +08:00
parent c8d91884c8
commit e96053ba20
6 changed files with 5 additions and 6 deletions

View File

@ -430,8 +430,7 @@ def host_del(request, offset):
host_id = request.POST.get(key)
db_host_delete(request, host_id)
else:
host_id = int(offset)
db_host_delete(request, host_id)
db_host_delete(request, offset)
return HttpResponseRedirect('/jasset/host_list/')

View File

@ -774,10 +774,9 @@ def get_apply_posts(request, status, username, dept_name, keyword=None):
posts = post_all.filter(dept=dept_name)
elif is_common_user(request):
if keyword:
posts = post_keyword_all.filter(user=username)
posts = post_keyword_all.filter(applyer=username)
else:
posts = post_all.filter(user=username)
posts = post_all.filter(applyer=username)
return posts

View File

@ -1,7 +1,7 @@
#coding: utf8
[base]
ip = 192.168.0.129
ip = 192.168.20.209
port = 80
key = 88aaaf7ffe3c6c04

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

View File

@ -31,6 +31,7 @@
<div class="ibox-content">
<div class="">
<a target="_blank" href="/jasset/host_add" class="btn btn-sm btn-primary"> 娣诲姞涓绘満 </a>
<b class="pull-right">鎻愮ず: 姝ら〉闈㈠垹闄ゅ彧浠庢湰涓绘満缁勪腑鍓旈櫎涓绘満 </b>
</div>
<form id="contents_form" name="contents_form">