Fakultas Ilmu Komputer UI

Commit 85f974d5 authored by Usman Sidiq's avatar Usman Sidiq
Browse files

Pbi 3 registrasi login

parent 340b17e8
......@@ -29,7 +29,7 @@ class FasilitasRelatedViewTest(InformasiFasilitasViewTest):
'dislike': self.default_dislike,
'rating': self.default_rating,
'tag': ['KR', 'RT'],
'image': str(fasilitas.image),
'image': '/media/' + str(fasilitas.image),
'is_verified': False}
}
......
......@@ -105,7 +105,7 @@ def list_fasilitas(request, nama_lokasi):
fasilitas_details["dislike"] = fasilitas.dislike
fasilitas_details["rating"] = fasilitas.rating
fasilitas_details["tag"] = fasilitas.tag
fasilitas_details["image"] = str(fasilitas.image)
fasilitas_details["image"] = '/media/'+str(fasilitas.image)
fasilitas_details["is_verified"] = fasilitas.is_verified
return JsonResponse(return_json, status=HTTPStatus.OK)
except Exception as error:
......@@ -163,7 +163,7 @@ def detail_fasilitas(request, nama_lokasi, id):
"dislike": fasilitas.dislike,
"rating": fasilitas.rating,
"tag": fasilitas.tag,
"image": str(fasilitas.image),
"image": '/media/' + str(fasilitas.image),
"is_verified": fasilitas.is_verified}
return JsonResponse(return_json, status=HTTPStatus.OK)
except KeyError as missing_key:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment