def _is_unique(url):
 return (Service.objects.filter(base_url=url).count() == 0)

def _is_unique ( url ) : return ( Service . objects . filter ( base_url = url ) . count ( ) == 0 )
determine if a service is already registered based on matching url .