Implemented relation options for BaseModel::render_form() and minor bugfix for jQuery.restForm().