(id)
return User.objects.get(id=django_id)
From a couch id of a profile object, get the django user
From a couch id of a profile object, get the django user
From a couch id of a profile object get the django user
def django_user_from_couch_id(id):
    """
    From a couch id of a profile object, get the django user
    """
    # get the couch doc
    from corehq.apps.users.models import CouchUser
    couch_rep = CouchUser.get_db().get(id)
    django_id = couch_rep["django_user"]["id"]
    return User.objects.get(id=django_id)
def django_user_from_couch_id ( id ) : # get the couch doc from corehq . apps . users . models import CouchUser couch_rep = CouchUser . get_db ( ) . get ( id ) django_id = couch_rep [ "django_user" ] [ "id" ] return User . objects . get ( id = django_id )