slug


Hi this line of code slug = f'{slug}-{object_pk}' doesnt work on my django 1.11 python 3.5, w

is there an alternative?

Thanks

Category: General
Asked at Sept. 24, 2018, 3:33 p.m. by obmsuya

1 Answer


You can either update your Python version to 3.7 or use the .format() method it is completely up to you.

Answered on: Sept. 24, 2018, 3:35 p.m.
Answered by: admin