slugify with multiple fields

What will be the effect of having a slug using slugify with multiple fields ?
self.slug = slugify(self.title + self.company)
Will it become journalistCNN or will it become journalist-cnn in Django 4.0 ?

This is easy to check yourself with ./manage.py shell:

>>> from django.utils.text import slugify
>>> title = "journalist"
>>> company = "CNN"
>>> slugify(title + company)
'journalistcnn'

This happens because you’re adding the strings before passing them to slugify(). It only sees one string, so it couldn’t possibly add a dash.

If you want a dash between the pieces, provide it:

>>> slugify(title + "-" + company)
'journalist-cnn'

…or better with an f-string:

>>> slugify(f"{title}-{company}")
'journalist-cnn'

Thank You very much.