diff --git a/Licenseserver/health_view/views.py b/Licenseserver/health_view/views.py index bcae08a..6757840 100644 --- a/Licenseserver/health_view/views.py +++ b/Licenseserver/health_view/views.py @@ -180,5 +180,7 @@ def create_license(request, fid): return render(request, 'health_view/create_license.html', context) -def delete_license(request): - print("test") +def delete_license(request, id): + license = get_object_or_404(License, id=id) + health_view.cron.filter_license_and_delete(license) + return HttpResponseRedirect('/health_view/givenlicenses/')