예제 #1
0
def make_fake_policy():
    p = Policy()
    p.policy_id = '123456'
    p.payor_id = '1234567'
    p.group_id = '1234567'
    p.group_name = fake.company() + ' ' + fake.company_suffix()
    p.effective_start = fake.date()
    p.effective_end = fake.date()
    p.is_in_effect = fake.boolean()
    return p
예제 #2
0
def make_fake_policy():
    p = Policy()
    p.policy_id = '123456'
    p.payor_id = '1234567'
    p.group_id = '1234567'
    p.group_name = fake.company() + ' ' + fake.company_suffix()
    p.effective_start = fake.date()
    p.effective_end = fake.date()
    p.is_in_effect = fake.boolean()
    return p
예제 #3
0
파일: rest.py 프로젝트: Simplixity/server
def get_policy(policy_id):
    return Policy.objects(pk=policy_id).to_json()
예제 #4
0
def get_policy(policy_id):
    return Policy.objects(pk=policy_id).to_json()