How to create delete button for deleting a record in django

前端 未结 0 1765
孤独总比滥情好
孤独总比滥情好 2021-01-17 22:04

I am trying to delete a record My views.py file is

def AnnouncementDelete(request, pk):
    announcement = get_object_or_404(Announcement, pk=pk)
    if reque         


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