docs: def get_layer(self):
          """ retrieve layer from DB """
          if self.layer:
              return
          try:
              self.layer = Layer.objects.get(slug=self.kwargs['slug'])
          except Layer.DoesNotExist:
              raise Http404(_('Layer not found'))