title: How can I use get_next_by_FOO() in django?
body: <p>I am building blog website and trying to put <code>next</code> and <code>prev</code> buttons for next post and previous post respectively.</p>
  
  <p>In the official document, it explains <code>get_next_by_FOO(**kwargs)</code> and <code>where FOO is the name of the field. This returns the next and previous object with respect to the date field</code>.</p>
  
  <p>So my models.py and views.py are following.</p>
  
  <p>models.py</p>
  
  <pre><code>class Post(models.Model):
      title = models.CharField(max_length=100)
      content = models.TextField()
      updated = models.DateTimeField(auto_now=True, auto_now_add=False)
      timestamp = models.DateTimeField(auto_now=False, auto_now_add=True)
      class Meta:
          ordering = ["-timestamp", "-updated"]
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def post_detail(request, id=None):
      instance = get_object_or_404(Post, id=id)
      the_next = instance.get_next_by_title()
      context ={
          "title": instance.title,
          "instance": instance,
          "the_next" : the_next,
      }
      return render(request, "post_detail.html", context)
  </code></pre>
  
  <p>Do I misunderstand its concept?? If I do, how can I deal with it?
  Thanks in advance!  </p>