Trying to create a permission from custom script like this:
perm = ObjectPermission(
name = script,
As I understand it I need to use the .set() for adding the object_types property. However, i get the error:
ValueError: Field 'id' expected a number but got 'extras.script'.
Bummer, so the perm.object.set() expects an integer? FIne, but I can't find a way of getting that id. nbshell help just naggs about pizzas and toppings:-)