django-restful-admin icon indicating copy to clipboard operation
django-restful-admin copied to clipboard

fix delete method

Open gbarb0sa opened this issue 1 year ago • 4 comments

Issue #12

Resolved an issue in the get_permission_map method where the mapping for the 'delete' method was inconsistent with the actual method name used in the code. The discrepancy was identified in the delete method, which was implemented as 'destroy.' To address this, I've updated the get_permission_map function to correctly map to the 'destroy' method. This adjustment ensures that the mapping aligns with the actual method names, resolving the bug and improving code consistency.

gbarb0sa avatar Nov 13 '23 14:11 gbarb0sa

Please merge it ASAP.

sfalsin avatar Nov 13 '23 16:11 sfalsin

Thank you it helped a lot.

GabrielSizini avatar Nov 13 '23 17:11 GabrielSizini

Finally something that worked

ArturM-S avatar Nov 13 '23 17:11 ArturM-S

Thanks, this PR will help a lot! @amirasaran could merge it for us?

matmany avatar Nov 14 '23 11:11 matmany