def contacts_detail_delete(request, pk): contact = Contacts.objects.get(id=pk) criminal = contact.criminal_id action_logging_exclude(request, criminal, contact) action_logging_delete(request, contact) contact.delete() return redirect(criminal)
def personal_access_delete(request, pk): access = PersonAccess.objects.get(id=pk) action_logging_delete(request, access) access.delete() return redirect('/access/')
def group_access_delete(request, pk): access = GroupAccess.objects.get(id=pk) action_logging_delete(request, access) access.delete() return redirect('/access/')
def criminal_case_delete(request, pk): cc = CriminalCase.objects.get(id=pk) action_logging_delete(request, cc) cc.delete() return redirect(reverse('cc_list_url'))
def post(self, request, pk): criminal = Criminals.objects.get(id=pk) action_logging_delete(request, criminal) criminal.delete() return redirect(reverse('criminals_list_url'))
def post(self, request, pk): manhunt = Manhunt.objects.get(id=pk) action_logging_delete(request, manhunt) manhunt.delete() return redirect(reverse('manhunt_list_url'))