'Get the related service object dynamically'

@property
def service(self):

    service_layers = self.servicelayer_set.all()
    if (len(service_layers) == 0):
        return None
    else:
        return service_layers[0].service
