def _maybe_schedule_rebuild(form):
 if (('title' in form.changed_data) or ('slug' in form.changed_data)):
  schedule_rebuild_kb()

def _maybe_schedule_rebuild ( form ) : if ( ( 'title' in form . changed_data ) or ( 'slug' in form . changed_data ) ) : schedule_rebuild_kb ( )
try to schedule a kb rebuild if a title or slug has changed .