Skip to content

Commit b251be0

Browse files
authored
Merge pull request #264 from CSSAInformationDepartment/master
add fields in get_merchants mobile api
2 parents 7cbe6d4 + cce6147 commit b251be0

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)