def ng_delete(self, request, *args, **kwargs):
        """
        Delete object and return it's data in JSON encoding
        The response is build before the object is actually deleted
        so that we can still retrieve a serialization in the response
        even with a m2m relationship
        """
        if request.GET not in 'pk':
            raise NgMissingParameterError("Object id is required to delete.")

        obj = self.get_object()
        response = self.build_json_response(obj)
        obj.delete()
        return response
dataset/ETHPy150Open jrief/django-angular/djng/views/crud.py/NgCRUDView.ng_delete/swapped operands of `not in`