Exemplo n.º 1
0
def deleteSchedule(request, id):
    delete_object(Schedule, id)
    return HttpResponseRedirect(reverse('post:list', args=['calendar']))
Exemplo n.º 2
0
def deleteIpstune(request, id):
    delete_object(IPSTune, id)
    return HttpResponseRedirect(reverse('post:list', args=['ipstune']))
Exemplo n.º 3
0
def deleteAnswer(request, id):
    object = Answer.objects.get(id=id)
    model = object.content_type.model_class().__name__
    delete_object(Answer, id)

    return HttpResponseRedirect(reverse('post:list', args=[model.lower()]))
Exemplo n.º 4
0
def deleteTakeover(request, id):
    delete_object(Takeover, id)
    return HttpResponseRedirect(reverse('post:list', args=['takeover']))
Exemplo n.º 5
0
def deleteDetectionpattern(request, id):
    delete_object(DetectionPattern, id)
    return HttpResponseRedirect(reverse('post:list',
                                        args=['detectionpattern']))
Exemplo n.º 6
0
def deleteTimetable(request, id):
    delete_object(Timetable, id)
    return HttpResponseRedirect(reverse('post:list', args=['timetable']))
Exemplo n.º 7
0
def deleteNotice(request, id):
    delete_object(Notice, id)
    return HttpResponseRedirect(reverse('post:list', args=['notice']))
Exemplo n.º 8
0
def deleteCompany(request, id):
    delete_object(
        Company,
        id,
        cascade=['address', 'security', 'internal', 'virus', 'ransomware'])
    return HttpResponseRedirect(reverse('post:list', args=['company']))
Exemplo n.º 9
0
def deleteSymptom(request, id):
    delete_object(Symptom, id)
    return HttpResponseRedirect(reverse('post:list', args=['symptom']))
Exemplo n.º 10
0
def deleteOutflow(request, id):
    delete_object(Outflow, id)
    return HttpResponseRedirect(reverse('post:list', args=['outflow']))
Exemplo n.º 11
0
def deleteRansomwarepost(request, id):
    delete_object(RansomwarePost, id)
    return HttpResponseRedirect(reverse('post:list', args=['ransomwarepost']))
Exemplo n.º 12
0
def deleteCompanyRecord(request, id):
    delete_object(CompanyRecord, id)
    return HttpResponseRedirect(reverse('post:list', args=['companyrecord']))