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])