Issue summary
While looking at the code, I noticed slugify wasn't imported and after trying to run the code, it returned a NameError in utils/models.py.
Traceback
File "models.py", line 157, in slugify
title = slugify(title, allow_unicode=True)
^^^^^^^
NameError: name 'slugify' is not defined. Did you mean: 'self.slugify'
Steps to reproduce
- run python manage.py shell
- from [your_app.utils].models import ArticleTopic
- ArticleTopic(title="test").save()
Additional information
No response
Can be reproduced
Yes, on a fresh Wagtail project
Technical details
Working on this
I can confirm this reproducible on a fresh wagtail news template project. Running the ArticleTopic(title="test").save produces a NameError and I would like to fix this by adding the missing import. I'd submit a PR shortly.
Issue summary
While looking at the code, I noticed slugify wasn't imported and after trying to run the code, it returned a NameError in utils/models.py.
Traceback
File "models.py", line 157, in slugify
title = slugify(title, allow_unicode=True)
^^^^^^^
NameError: name 'slugify' is not defined. Did you mean: 'self.slugify'
Steps to reproduce
Additional information
No response
Can be reproduced
Yes, on a fresh Wagtail project
Technical details
Working on this
I can confirm this reproducible on a fresh wagtail news template project. Running the ArticleTopic(title="test").save produces a NameError and I would like to fix this by adding the missing import. I'd submit a PR shortly.