def create(): property_create = PropertyCreate(**request.form) hubspot = create_client() property = hubspot.crm.properties.core_api.create( ObjectType.CONTACTS, property_create=property_create) session[SessionKey.ACTION_PERFORMED] = "created" return redirect(url_for("properties.show", name=property.name), code=302)
def new(): property_create = PropertyCreate( type='string', group_name='contactinformation', ) return render_template( 'properties/show.html', property=property_create, )
def new(): property_create = PropertyCreate( type="string", group_name="contactinformation", ) return render_template( "properties/show.html", property=property_create, )