def METHOD_NAME(self, form, model, is_created):
    """Fill organisation_pid when saving.
    :param form:
        Form used to create/update model
    :param model:
        Model that was created/updated
    :param is_created:
        True if model was created, False if model was updated
    """
    location_pid = form.location_pid.data
    location = LocationsSearch().get_record_by_pid(location_pid)
    model.organisation_pid = location.organisation['pid']
    model.library_pid = location.library['pid']