def get_django_registration_version():
    """
    Returns new, old or None depending on the version of django registration
    Old works with forms
    New works with backends
    """
    try:
        from registration.backends import get_backend
        version = 'new'
    except ImportError:
        version = 'old'
    try:
        import registration
    except ImportError as e:
        version = None
    return version
