Answer the question
In order to leave comments, you need to log in
Django 3 how to pull post author?
Hello! I understand that when creating a record in the database, Django saves the author of the record? How can I pull this login? You need to make the CRUD mapping only for the user who created this entry. You need to do a check like {% if request.user == post author %} Then display a div block with CRUD buttons {% endif %}
Answer the question
In order to leave comments, you need to log in
You don’t understand it that way, janga itself only keeps a change log, but I don’t recommend pulling out data on it. Easier to properly design the model itself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question