Created
June 2, 2020 00:58
-
-
Save maxwellcc/2c32c6019d290ff1b0d3ad10323e8489 to your computer and use it in GitHub Desktop.
Django: apagar a ação delete do admin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_actions(self, request): | |
actions = super().get_actions(request) | |
if 'delete_selected' in actions: | |
del actions['delete_selected'] | |
return actions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment