Remove unused checkboxes in BulkDeleteForm

This commit is contained in:
Ryan Breaker 2017-10-24 21:17:56 -05:00
parent 54472b3806
commit 82bb03dbb2

View File

@ -21,7 +21,7 @@ from django.utils.safestring import mark_safe
from django.views.generic import View from django.views.generic import View
from extras.models import CustomField, CustomFieldValue, ExportTemplate, UserAction from extras.models import CustomField, CustomFieldValue, ExportTemplate, UserAction
from utilities.forms import BootstrapMixin, CSVDataField from utilities.forms import BootstrapMixin, CSVDataField, ReturnURLForm
from .error_handlers import handle_protectederror from .error_handlers import handle_protectederror
from .forms import ConfirmationForm from .forms import ConfirmationForm
from .paginator import EnhancedPaginator from .paginator import EnhancedPaginator
@ -697,7 +697,7 @@ class BulkDeleteView(View):
Provide a standard bulk delete form if none has been specified for the view Provide a standard bulk delete form if none has been specified for the view
""" """
class BulkDeleteForm(ConfirmationForm): class BulkDeleteForm(BootstrapMixin, ReturnURLForm):
pk = ModelMultipleChoiceField(queryset=self.cls.objects.all(), widget=MultipleHiddenInput) pk = ModelMultipleChoiceField(queryset=self.cls.objects.all(), widget=MultipleHiddenInput)
if self.form: if self.form: