Пример #1
0
 def sitepermissions(self, create, extracted, **kwargs):
     if create and extracted:
         # We have a saved object and a list of permission names
         self.sitepermissions.add(*[get_perm(pn) for pn in extracted])
Пример #2
0
 def sitepermissions(self, create, extracted, **kwargs):
     if create and extracted:
         # We have a saved object and a list of permission names
         self.sitepermissions.add(*[get_perm(pn) for pn in extracted])