articles/fields.py
def to_python(self, value):
        """
        Get rid of query and anchor when saving URL canonically
        """
        parsed_url = urlparse(value)
        url = urlunparse((parsed_url.scheme, parsed_url.netloc, parsed_url.path, "", "", ""))
        return url

        Get rid of query and anchor when saving URL canonically
        
Get rid of query and anchor when saving URL canonically
Get rid of query and anchor when saving URL canonically
def to_python(self, value):
        parsed_url = urlparse(value)
        url = urlunparse((parsed_url.scheme, parsed_url.netloc, parsed_url.path, "", "", ""))
        return url
def to_python ( self , value ) : parsed_url = urlparse ( value ) url = urlunparse ( ( parsed_url . scheme , parsed_url . netloc , parsed_url . path , "" , "" , "" ) ) return url
Get rid of query and anchor when saving URL canonically
Get rid of query and anchor when saving URL canonically
"""
        Get rid of query and anchor when saving URL canonically
        """
self
value