Browse Source

„Licenseserver/health_view/views.py“ ändern

master
Gabriel Kaufmann 3 years ago
parent
commit
2364f93bbe
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Licenseserver/health_view/views.py

+ 4
- 2
Licenseserver/health_view/views.py View File

return render(request, 'health_view/create_license.html', context) 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/')

Loading…
Cancel
Save