@login_required(login_url='/admin-panel/login/')
def delete_contact_form(request, contact_id):
    contact_id = int(contact_id)
    try:
        contact_sel = ContactForm.objects.get(pk=contact_id)
    except contact_id.DoesNotExist:
        return redirect('/admin-panel/contacts')
    contact_sel.delete()
    return redirect('/admin-panel/contacts')
@login_required(login_url='/admin-panel/login/')
def delete_contact_form(request, contact_id):
    contact_id = int(contact_id)
    try:
        contact_sel = ContactForm.objects.get(pk=contact_id)
    except contact_id.DoesNotExist:
        return redirect('/admin-panel/contacts')
    contact_sel.delete()
    return redirect('/admin-panel/contacts')