Answer the question
In order to leave comments, you need to log in
How to check in UpdateView if the post editor is the author of the post?
Django | How to check in UpdateView if the post editor is the author of the post? Can this be done via request? But I don't understand how to properly implement this check.
Answer the question
In order to leave comments, you need to log in
override the post method or whatever you have - by adding something like:
if request.user == self.object.author:
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question