(self, slugs)
Update the object's slugs to the given list

        'slugs' should be a list of strings. Slugs that do not exist are
        created.  Existing slugs that are not in the 'slugs' list are
        deleted.
Update the object's slugs to the given list
Update the object s slugs to the given list
def set_slugs(self, slugs):
        """Update the object's slugs to the given list

        'slugs' should be a list of strings. Slugs that do not exist are
        created.  Existing slugs that are not in the 'slugs' list are
        deleted."""
        slugs = [utils.to_maxlength(Slug, "slug", slug) for slug in slugs]
        existing = {s.slug: s for s in self.slugs.all()}
        utils.set_ordered_entries(self, slugs, existing, Slug, "slug", "content_object")
def set_slugs ( self , slugs ) : slugs = [ utils . to_maxlength ( Slug , "slug" , slug ) for slug in slugs ] existing = { s . slug : s for s in self . slugs . all ( ) } utils . set_ordered_entries ( self , slugs , existing , Slug , "slug" , "content_object" )