{"action":"created","issue":{"url":"https://api.github.com/repos/stephenmcd/mezzanine/issues/1218","labels_url":"https://api.github.com/repos/stephenmcd/mezzanine/issues/1218/labels{/name}","comments_url":"https://api.github.com/repos/stephenmcd/mezzanine/issues/1218/comments","events_url":"https://api.github.com/repos/stephenmcd/mezzanine/issues/1218/events","html_url":"https://github.com/stephenmcd/mezzanine/issues/1218","id":58570020,"number":1218,"title":"`set_slug` and other slug-related automatic changes => make optional?","user":{"login":"lajarre","id":1884912,"avatar_url":"https://avatars.githubusercontent.com/u/1884912?v=3","gravatar_id":"","url":"https://api.github.com/users/lajarre","html_url":"https://github.com/lajarre","followers_url":"https://api.github.com/users/lajarre/followers","following_url":"https://api.github.com/users/lajarre/following{/other_user}","gists_url":"https://api.github.com/users/lajarre/gists{/gist_id}","starred_url":"https://api.github.com/users/lajarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lajarre/subscriptions","organizations_url":"https://api.github.com/users/lajarre/orgs","repos_url":"https://api.github.com/users/lajarre/repos","events_url":"https://api.github.com/users/lajarre/events{/privacy}","received_events_url":"https://api.github.com/users/lajarre/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-23T10:49:14Z","updated_at":"2015-02-23T10:54:02Z","closed_at":"2015-02-23T10:54:02Z","body":"Hi\r\n\r\nI wonder if it wouldn't be a good idea to make optional the concept of changing the URLs of related Pages when changing a particular Page.\r\n\r\nFor `Page.set_slug` I think of something like:\r\n\r\n    def set_slug(self, new_slug):\r\n        \"\"\"\r\n        Changes this page's slug (and all other pages whose slugs\r\n        start with this page's slug if `settings.AUTO_PAGE_SLUGS`).\r\n        \"\"\"\r\n        if settings.AUTO_PAGE_SLUGS:\r\n            slug_prefix = \"%s/\" % self.slug\r\n            for page in Page.objects.filter(slug__startswith=slug_prefix):\r\n                if not page.overridden():\r\n                    page.slug = new_slug + page.slug[len(self.slug):]\r\n                    page.save()\r\n        self.slug = new_slug\r\n        self.save()\r\n\r\nSame would go for `set_parent` notably.\r\n\r\nFor my website I am going to remove this feature by changing the Page class, because it is confusing admin people too much.\r\n\r\nHappy to hear feedback and suggest a pull request if makes sense."},"comment":{"url":"https://api.github.com/repos/stephenmcd/mezzanine/issues/comments/75522329","html_url":"https://github.com/stephenmcd/mezzanine/issues/1218#issuecomment-75522329","issue_url":"https://api.github.com/repos/stephenmcd/mezzanine/issues/1218","id":75522329,"user":{"login":"stephenmcd","id":116385,"avatar_url":"https://avatars.githubusercontent.com/u/116385?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenmcd","html_url":"https://github.com/stephenmcd","followers_url":"https://api.github.com/users/stephenmcd/followers","following_url":"https://api.github.com/users/stephenmcd/following{/other_user}","gists_url":"https://api.github.com/users/stephenmcd/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenmcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenmcd/subscriptions","organizations_url":"https://api.github.com/users/stephenmcd/orgs","repos_url":"https://api.github.com/users/stephenmcd/repos","events_url":"https://api.github.com/users/stephenmcd/events{/privacy}","received_events_url":"https://api.github.com/users/stephenmcd/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T10:54:02Z","updated_at":"2015-02-23T10:54:02Z","body":"I think it's too much of an edge case to warrant the overhead of Adding Another Setting, sorry.\r\n\r\nSurprised to hear people find it confusing - my experience is the opposite behaviour is very unexpected.\r\n\r\nThanks anyway."}}