post_model function edit