Adding slug id in query

前端 未结 1 1026
南旧
南旧 2021-01-26 01:23

I have a DetailView which contains a get function. This get function checks if a certain condition holds true, if it does then throw an error. However, I\'m having difficulty ge

相关标签:
1条回答
  • 2021-01-26 01:59

    You get the slug from the kwargs: kwargs['id'].

    0 讨论(0)
提交回复
热议问题