def get_payment_model():
    try:
        app_label, model_name = settings.PAYMENT_MODEL.split('.')
    except (ValueError, AttributeError):
        raise ImproperlyConfigured('PAYMENT_MODEL must be of the form '
                                   '"app_label.model_name"')
    payment_model = get_model(app_label, model_name)
    if payment_model is None:
        msg = (
            'PAYMENT_MODEL refers to model "%s" that has not been installed' %
            settings.PAYMENT_MODEL)
        raise ImproperlyConfigured(msg)
    return payment_model
Test using keys with slashes for state
dataset/ETHPy150Open mirumee/django-payments/payments/__init__.py/get_payment_model--crossover with--dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestStateIO.test_slashed_key