Blog Archive for August 12, 2011

Django Permissions In Test Fixtures

August 12, 2011

I wanted to use some Permissions in a Group in my test fixtures. This meant having the following json in the fixture, which referred to the Permission by serial:

{
  "pk": 4, 
  "model": "auth.group", 
  "fields": {
    "name": "View Volume 4", 
    "permissions": [ …