Exemplo n.º 1
0
def generate_grant_application():
    b = GivingProject()
    # b.organization = Grantee.objects.order_by('?')[0]
    b.grant_cycle = GrantCycle.objects.order_by('?')[0]

    b.fundraising_deadline = datetime.date.today()
    b.title = generate_string()
    return b;
def generate_grantee():
    a = GivingProject()
    a.title  = "Adeptus Mechanicus"
    a.email = "*****@*****.**"
    a.city = "Seattle"
    a.state = "WA"
    a.zip = 98020
    a.telephone_number = "(206)-275-8291"
    a.email_address = "*****@*****.**"
    a.website = "adMech.org"
    a.status = 'Tribal government'
    a.save()
    return a