(self, url)
Sets the canonical URL
Sets the canonical URL
Sets the canonical URL
def set_url(self, url):
        """Sets the canonical URL"""

        urls = [u.url for u in self.urls.all()]
        if url in urls:
            urls.remove(url)

        urls.insert(0, url)
        self.set_urls(urls)
def set_url ( self , url ) : urls = [ u . url for u in self . urls . all ( ) ] if url in urls : urls . remove ( url ) urls . insert ( 0 , url ) self . set_urls ( urls )