Ticket #16377: 16377.diff

File 16377.diff, 570 bytes (added by Aymeric Augustin, 13 years ago)
  • docs/ref/contrib/admin/actions.txt

     
    343343            def get_actions(self, request):
    344344                actions = super(MyModelAdmin, self).get_actions(request)
    345345                if request.user.username[0].upper() != 'J':
    346                     del actions['delete_selected']
     346                    actions.pop('delete_selected', None)
    347347                return actions
    348348   
    349349
Back to Top