Django 16 deals with making sure only the actual author of a blog can
edit or delete it. To do this, we make sure that one can only proceed if user ID
is identical to author ID. That ID is assigned when we create a new user in the
admin scetion...
The ForeignKey from the models' page is that ID.
One can see theidentity condition on the home page.
No comments:
Post a Comment