Ticket #16377: 16377.2.diff

File 16377.2.diff, 622 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                    if 'delete_selected' in actions:
     347                        del actions['delete_selected']
    347348                return actions
    348349   
    349350
Back to Top