martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
424 stars 24 forks source link

Add option to automatically generate slug from another field #258

Closed treagod closed 1 month ago

treagod commented 2 months ago

With this change a slug field accepts a slugify parameter, which references another field of the same model. When set the slug field we be automatically set to a slugified version of the referenced field.

155