Django - Catching UNIQUE costraint failed

后端 未结 0 851
醉梦人生
醉梦人生 2020-12-13 18:42

I have a class method for creating a slug from title for url, which must be unique.

In case the title is taken I would like to add id at the start of the slug, but my

相关标签:
回答
  • 消灭零回复
提交回复
热议问题