Adds a slugify function and tests
Adds a model function so that it can be extended

Use these functions in other models