Note that there are some explanatory texts on larger screens.

plurals
  1. PODeleting in Django Admin throws a 403 error
    primarykey
    data
    text
    <p>I am attempting to delete a record from the Django admin interface. I click the check box then select "Delete Selected " from the action drop down and select 'Go'. This immediately throws a 403 error.</p> <p>This is the area I am attempting to delete from that gets the 403s:</p> <p><img src="https://i.stack.imgur.com/m4rz8.png" alt="Failing delete area"></p> <p>The model that is having problems deleting has two inline elements. However, will allow me to delete if I go to each individual record and select delete from there. </p> <p>It works from here (after clicking 'Third' from the above image)</p> <p><img src="https://i.stack.imgur.com/mikJ8.png" alt="Working delete area"></p> <p>I watched the request in Firebug and it does not seem different than when I delete a record on a different model and it works.</p> <p>This is the output of Firebug:</p> <pre><code>Parameters application/x-www-form-urlencoded _selected_action 2 action delete_selected csrfmiddlewaretoken lr6EAAPGJWJBWIm6NxIoyt8fWzfuNxj9 index 0 select_across 0 Source csrfmiddlewaretoken=lr6EAAPGJWJBWIm6NxIoyt8fWzfuNxj9&amp;action=delete_selected&amp;select_across=0&amp;index=0&amp;_selected_action=2 </code></pre> <p>I am unsure where to go to troubleshoot this error since I haven't modified the admin panel at all and the only thing in the logs is a 403 error. How can I get the delete at the model level to work?</p> <p><strong>Edit</strong> I have delete permissions to this model. It also occurs if the user deleting is the superuser.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload