code: def reset_permission_factories(self):
          
          for key in ('read', 'create', 'update', 'delete'):
              full_key = '{0}_permission_factory'.format(key)
              if full_key in self.__dict__:
                  del self.__dict__[full_key]
docs: Remove cached permission factories.