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()})
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()})
def get_school_mailing_address_form(request, school, conference): form = SchoolMailingAddressForm(instance=school) return simplejson.dumps({'form':form.as_p()})
def get_school_mailing_address_form(request, school, conference): form = SchoolMailingAddressForm(instance=school) return simplejson.dumps({'form': form.as_p()})