Skip to content

Commit cce6147

Browse files
committed
add fields in get_merchants mobile api
1 parent 482f750 commit cce6147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MobileAppAPI/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def Merchants(request):
1919
jsonRes = []
2020
for merchant in merchants:
2121
jsonObj = dict(id=merchant.merchant_id, name=merchant.merchant_name, sale=merchant.merchant_description,
22-
location=merchant.merchant_address, img=str(merchant.merchant_image.url))
22+
location=merchant.merchant_address, img=str(merchant.merchant_image.url), longitude=merchant.longitude, latitude=merchant.latitude, category=merchant.merchant_Category)
2323
jsonRes.append(jsonObj)
2424
return HttpResponse(json.dumps(jsonRes), content_type='application/json')
2525

0 commit comments

Comments
 (0)