title: Getting next and previous objects in Django
body: <p>I'm trying to get the next and previous objects of a comic book issue. Simply changing the id number or filtering through date added is not going to work because I don't add the issues sequentially.</p>
  <p>This is how my views are setup and it WORKS for <code>prev_issue</code> and does return the previous object, but it returns the last object for <code>next_issue</code> and I do not know why.</p>
  <pre><code>def issue(request, issue_id):
      issue = get_object_or_404(Issue, pk=issue_id)
      title = Title.objects.filter(issue=issue)
      prev_issue = Issue.objects.filter(title=title).filter(number__lt=issue.number)[0:1]
      next_issue = Issue.objects.filter(title=title).filter(number__gt=issue.number)[0:1]
  </code></pre>