Esempio n. 1
0
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)
Esempio n. 2
0
def personal_access_delete(request, pk):
    access = PersonAccess.objects.get(id=pk)
    action_logging_delete(request, access)
    access.delete()
    return redirect('/access/')
Esempio n. 3
0
def group_access_delete(request, pk):
    access = GroupAccess.objects.get(id=pk)
    action_logging_delete(request, access)
    access.delete()
    return redirect('/access/')
Esempio n. 4
0
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'))
Esempio n. 5
0
 def post(self, request, pk):
     criminal = Criminals.objects.get(id=pk)
     action_logging_delete(request, criminal)
     criminal.delete()
     return redirect(reverse('criminals_list_url'))
Esempio n. 6
0
 def post(self, request, pk):
     manhunt = Manhunt.objects.get(id=pk)
     action_logging_delete(request, manhunt)
     manhunt.delete()
     return redirect(reverse('manhunt_list_url'))