title: In Django, what is the easiest way to make only the author edit/remove a posting?
body: <p>In Django, I have a Post model that users can post a message. In views.py, how to make only the original author of the posting can edit or remove it? </p>
  
  <pre><code>@login_required
  def edit(request, pk):
      post = get_object_or_404(Post, pk=pk)
  </code></pre>