DeleteCheckbox

DeleteCheckbox is a custom form field based on django.forms.CheckboxField with the following changes:

  • The render method is overridden to display a Delete label.
  • The constructor accepts an optional is_required argument.

DeleteCheckbox is part of verdjnlib and was developed for use with verdjnlib.FileField to enable the deletion of uploaded files. The source code can be viewed in the browser at verdjnlib/fields.