The response from my application is as below, but I want to add another field next to previous in metadata, how to add IP to metadata
{
"count": 100,
"next": "http://127.0.0.1:8000/users/?page=2",
"previous": null,
"results": [
{
"first_name": "john",
"last_name": "a",
"mail": "[email protected]"
}
]
}
I want my results to be:
{
"count": 100,
"next": "http://127.0.0.1:8000/users/?page=2",
"previous": null,
"ip-adress":0.0.0(something)
"results": [
{
}
addmetadatawithout addingcan you show example?