Convert function-based view to class-based view

前端 未结 0 1499
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-05 04:27

This is my current function-based view:

def post_detail(request, year, month, day, post):
    post = get_object_or_404(Post, slug=post, status=\'published\', publ         


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