def _get_model_entry(slug):
    app_label, model_slug = slug.split('.')

    try:
        ct = ContentType.objects.get(app_label=app_label, model=model_slug)
    except ContentType.DoesNotExist:
        raise Http404(u'Content type not found.')

    model_class = ct.model_class()
    registry = utils.get_registry()
    if not registry in model_class:
        raise Http404(u'No registered model found for given query.')

    return model_class
dataset/ETHPy150Open vikingco/django-datatrans/datatrans/views.py/_get_model_entry/swapped operands of `in`