diff --git a/back/backend/policy.py b/back/backend/policy.py index e325284..c648149 100644 --- a/back/backend/policy.py +++ b/back/backend/policy.py @@ -78,7 +78,7 @@ pol.add_section(flight_section) lodging_section = Section( title="Hotel Info", html_description="

Enter hotel info here.\nPer diem rates can be found at " - "

", + "this link

", fields={ "check-in_date": {"label": "Check-in date", "type": "date"}, "check-out_date": {"label": "Check-out date", "type": "date"}, @@ -124,7 +124,8 @@ pol.add_section(transport_section) #### Section 4 per_diem_section = Section( title="Per Diem", - html_description="

Enter info about meals and incidentals here.\nPer diem rates can be found at

", + html_description="

Enter info about meals and incidentals here.\nPer diem rates can be found at " + "this link

", fields={ "duration": {"label": "How many days was your trip?", "type": "decimal"}, "rate": {"label": "What is the per diem rate for your destination?", "type": "decimal"}, diff --git a/back/backend/views.py b/back/backend/views.py index 98cb155..b3efb87 100644 --- a/back/backend/views.py +++ b/back/backend/views.py @@ -2,7 +2,6 @@ from rest_framework.decorators import api_view from django.http import JsonResponse from .models import * from .policy import pol -import ntpath # function that prints all the reports @@ -134,6 +133,7 @@ def report_detail(request, report_pk): # Delete the report elif request.method == 'DELETE': + Report.objects.filter(id=report_pk).delete() return JsonResponse({"message": "Deleted report {0}.".format(report_pk)}) diff --git a/back/db.sqlite3 b/back/db.sqlite3 index 54ace4a..5915594 100644 Binary files a/back/db.sqlite3 and b/back/db.sqlite3 differ