code: def make_id(self):
          
          if self.url_id is None:  # Set id only if empty
              self.url_id = select([func.coalesce(func.max(self.__class__.url_id + 1), 1)],
                  self.__class__.parent == self.parent)
docs: Create a new URL id that is unique to the parent container