def discard_draft(exp_id, user_id):
 exp_user_data = user_models.ExplorationUserDataModel.get(user_id, exp_id)
 if exp_user_data:
  exp_user_data.draft_change_list = None
  exp_user_data.draft_change_list_last_updated = None
  exp_user_data.draft_change_list_exp_version = None
  exp_user_data.put()

def discard_draft ( exp_id , user_id ) : exp_user_data = user_models . ExplorationUserDataModel . get ( user_id , exp_id ) if exp_user_data : exp_user_data . draft_change_list = None exp_user_data . draft_change_list_last_updated = None exp_user_data . draft_change_list_exp_version = None exp_user_data . put ( )
discard the draft for the given user and exploration .