Django rest framework i want the Json to be displayed by clubbing the risk tag key with in rest api code
问题 Below is the Json response from Django Rest api i want a customized output like risktag: "common" as one group and risktag: "Supply chain" as one group' and the other 'risktag' type as one group at present when i hit the url http://127.0.0.1:8000/inidcator/?name=app&year=2019 below is the json response [ { "id": 1, "year": "2019-09-28", "name": "Mango", "risk": "Global markets for....", "risktag": "Common" }, { "id": 2, "year": "2019-09-28", "name": "Banana", "risk": "Global markets for the .