„Licenseserver/health_view/views.py“ ändern
This commit is contained in:
parent
759e64a146
commit
2364f93bbe
@ -180,5 +180,7 @@ def create_license(request, fid):
|
|||||||
return render(request, 'health_view/create_license.html', context)
|
return render(request, 'health_view/create_license.html', context)
|
||||||
|
|
||||||
|
|
||||||
def delete_license(request):
|
def delete_license(request, id):
|
||||||
print("test")
|
license = get_object_or_404(License, id=id)
|
||||||
|
health_view.cron.filter_license_and_delete(license)
|
||||||
|
return HttpResponseRedirect('/health_view/givenlicenses/')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user