Fakultas Ilmu Komputer UI

Commit a3121ea8 authored by Usman Sidiq's avatar Usman Sidiq
Browse files

Merge branch 'PBI-3-registrasi_login' into 'staging'

Pbi 3 registrasi login

See merge request !62
parents 340b17e8 85f974d5
Pipeline #48906 passed with stages
in 19 minutes and 22 seconds
......@@ -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