コード例 #1
0
ファイル: school.py プロジェクト: jnovinger/human
def save_school_mailing_address_form(request, school, conference):
    form = SchoolMailingAddressForm(data=request.POST, instance=school)

    if form.is_valid():
        school = form.save()
        return simplejson.dumps({'new_school_mailing_address': school.get_html_mailing_address()})
    else:
        return simplejson.dumps({'form':form.as_p()})
コード例 #2
0
def save_school_mailing_address_form(request, school, conference):
    form = SchoolMailingAddressForm(data=request.POST, instance=school)

    if form.is_valid():
        school = form.save()
        return simplejson.dumps(
            {'new_school_mailing_address': school.get_html_mailing_address()})
    else:
        return simplejson.dumps({'form': form.as_p()})
コード例 #3
0
ファイル: school.py プロジェクト: jnovinger/human
def get_school_mailing_address_form(request, school, conference):
    form = SchoolMailingAddressForm(instance=school)
    return simplejson.dumps({'form':form.as_p()})
コード例 #4
0
def get_school_mailing_address_form(request, school, conference):
    form = SchoolMailingAddressForm(instance=school)
    return simplejson.dumps({'form': form.as_p()})