'Return URL for OGC WMS server None if it does not exist.'

def get_ows_url(self):

    try:
        ows_link = self.link_set.get(name='OGC:WMS')
    except Link.DoesNotExist:
        return None
    else:
        return ows_link.url
