Add flush hooks to automatically create a "code", or "slug" as it's
named in the model, for objects that have slugs.