When I create data fixtures for user groups using the dumpdata command:
python manage.py dumpdata auth.Group --indent 4 > fixtures.json
I get the ids of the permissions (23, 25, 26) in the following format:
{
"model": "auth.group",
"pk": 7,
"fields": {
"name": "Subscribers",
"permissions": [
23,
25,
26
]
}
}
How do I get it to be in the format below for the permissions field?
{
"model": "auth.group",
"pk": 7,
"fields": {
"name": "Subscribers",
"permissions": [
["add_location", "main", "location"],
["change_location", "main", "location"],
["delete_location", "main", "location"]
]
}
}
I looked up the documentation but couldn't find anything on this.