def delete(self, request, *args, **kwargs):
        pk = kwargs.get('pk', None)
        if pk:
            instance = Comment.objects.get(pk=pk)
            if request.user.id != instance.created_by.id:
                return HttpResponseForbidden()
        return super(CommentViewSet, self).delete(request, *args, **kwargs)
Check type of a value of `radio_fields` dictionary.
dataset/ETHPy150Open upconsulting/IsisCB/isiscb/isisdata/views.py/CommentViewSet.delete--crossover with--dataset/ETHPy150Open django/django/django/contrib/admin/checks.py/BaseModelAdminChecks._check_radio_fields_value