Complete the code to check if the user has permission to add an object in the template.
{% if user.has_perm('[1]') %}You can add this item.{% endif %}The has_perm method checks if the user has the specified permission. To check add permission, use app.add_item.
Complete the code to check if the user has permission to delete an object in the template.
{% if user.has_perm('[1]') %}You can delete this item.{% endif %}To check delete permission, use app.delete_item with has_perm.
Fix the error in the template code to correctly check if the user can change an object.
{% if user.[1]('app.change_item') %}You can edit this item.{% endif %}The correct method to check permissions in Django templates is has_perm.
Fill both blanks to check if the user has permission to view an object and display a message.
{% if user.[1]('[2]') %}You can view this item.{% endif %}Use has_perm method with the permission string app.view_item to check view permission.
Fill all three blanks to check if the user has permission to add an object and show a message.
{% if user.[1]('[2]') %}[3]{% endif %}Use has_perm with app.add_item to check add permission and display the correct message.