def get_object(self):
        if 'pk' in self.request.GET:
            return self.model.objects.get(pk=self.request.GET['pk'])
        elif self.request.GET in self.slug_field:
            return self.model.objects.get(**{self.slug_field: self.request.GET[self.slug_field]})
        raise NgMissingParameterError(
            "Attempted to get an object by 'pk' or slug field, but no identifier is present. Missing GET parameter?")
dataset/ETHPy150Open jrief/django-angular/djng/views/crud.py/NgCRUDView.get_object/swapped operands of `in`