def delete(cls):
        """
        Returns the delete view that can be specified as the second argument
        to url() in urls.py.
        """

        class PopupDeleteViewView(PopupDeleteView, cls.parent_class):
            model = cls.model
            form_class = cls.form_class
            permission_required = cls.get_permission_required('delete')

        return PopupDeleteViewView