Disabling 'delete selected'.
authorBrandon King <kingb@caltech.edu>
Fri, 7 May 2010 22:45:35 +0000 (22:45 +0000)
committerBrandon King <kingb@caltech.edu>
Fri, 7 May 2010 22:45:35 +0000 (22:45 +0000)
htsworkflow/frontend/samples/admin.py

index 594cf35d4aa94d19b22a60904b513cc144e7f234..345e32ac4167723caa52873f4275267ed915ebe4 100644 (file)
@@ -12,6 +12,9 @@ from htsworkflow.frontend.experiments.models import Lane
 from htsworkflow.frontend.inventory.models import PrinterTemplate
 from htsworkflow.frontend.bcmagic.utils import print_zpl_socket
 
+# Let's disable those pesky delete everything by accident features.
+admin.site.disable_action('delete_selected')
+
 class AffiliationOptions(admin.ModelAdmin):
     list_display = ('name','contact','email')
     fieldsets = (