Passing model field as a slug to URL

后端 未结 0 1996
一生所求
一生所求 2021-02-07 05:34

models.py:

class Article(models.Model):
    title = models.CharField(\'Title\', max_length=99)
    slug = AutoSlugField(max_length=99, populate_from=\'title\', un         


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