Django get pk in decorator

前端 未结 0 1700
慢半拍i
慢半拍i 2021-01-15 00:11

I would like to know how I can get the pk of an object inside my decorator.

views.py
    @count_view
    def post_detail(request, pk):
        post = get_obje         


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