You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming a normal user (not staff or superuser) has add, delete, change permissions for devices and ip addresses.
When the user selects multiple IP Addresses in the IP Address list, the bulk Delete button does not appear.
A superuser can do this fine. I don't think this is intended?
I think this happens in obj_table.html somwhere around here:
{% if bulk_delete_url and table.model|user_can_delete:request.user %}
So, assuming the bulk_delete_url is passed correctly from the view, I'm guessing it's something to do with the evaluation of table.model|user_can_delete:request.user but that's as far as I've been able to get.
Hope that's some help?
The text was updated successfully, but these errors were encountered:
It seems like table.model is no longer returning the associate model. Not sure why; could have been a change in django-tables2. At any rate, I'm going to rewrite they way permissions are checked for table rendering.
Assuming a normal user (not staff or superuser) has add, delete, change permissions for devices and ip addresses.
When the user selects multiple IP Addresses in the IP Address list, the bulk Delete button does not appear.
A superuser can do this fine. I don't think this is intended?
I think this happens in obj_table.html somwhere around here:
{% if bulk_delete_url and table.model|user_can_delete:request.user %}
So, assuming the bulk_delete_url is passed correctly from the view, I'm guessing it's something to do with the evaluation of table.model|user_can_delete:request.user but that's as far as I've been able to get.
Hope that's some help?
The text was updated successfully, but these errors were encountered: