show the latest issue in erang_organised
This commit is contained in:
parent
bfd5a6f156
commit
27211fd65c
|
@ -11,7 +11,7 @@ def home(request):
|
||||||
if request.GET.has_key('issue_id'):
|
if request.GET.has_key('issue_id'):
|
||||||
issue_id = request.GET.get('issue_id')
|
issue_id = request.GET.get('issue_id')
|
||||||
else:
|
else:
|
||||||
issue_id = all_issues[0].id
|
issue_id = all_issues[-1].id
|
||||||
current_issue = Issue.objects.get(pk=issue_id)
|
current_issue = Issue.objects.get(pk=issue_id)
|
||||||
other_issues = all_issues.exclude(pk=issue_id)
|
other_issues = all_issues.exclude(pk=issue_id)
|
||||||
return render_to_response("erang/home.html", {
|
return render_to_response("erang/home.html", {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user