ups, show the current issue in erang
This commit is contained in:
parent
25628b0ed2
commit
e36e8df700
|
@ -11,8 +11,8 @@ def home(request):
|
|||
if request.GET.has_key('issue_id'):
|
||||
issue_id = request.GET.get('issue_id')
|
||||
else:
|
||||
l = all_issues.count() - 1
|
||||
issue_id = all_issues[l].id
|
||||
# l = 0
|
||||
issue_id = all_issues[0].id
|
||||
current_issue = Issue.objects.get(pk=issue_id)
|
||||
other_issues = all_issues.exclude(pk=issue_id)
|
||||
return render_to_response("erang/home.html", {
|
||||
|
|
Loading…
Reference in New Issue
Block a user