Attempt at fancy supplier search

#374
This commit is contained in:
2019-11-24 14:36:53 +00:00
parent 22f0041eaf
commit 127b22fe71
3 changed files with 65 additions and 2 deletions

View File

@@ -172,7 +172,7 @@ class SupplierSearch(SupplierList):
result = []
for supplier in context["object_list"]:
result.append({"name": supplier.name})
result.append({"id": supplier.pk, "name": supplier.name})
return JsonResponse(result, safe=False)