Exemple #1
0
 class Meta:
     queryset = Style.objects.all()
     resource_name = 'styles'
     detail_uri_name = 'id'
     authorization = GeoNodeStyleAuthorization()
     allowed_methods = ['get']
     filtering = {
         'id': ALL,
         'title': ALL,
         'name': ALL,
         'layer': ALL_WITH_RELATIONS
     }
Exemple #2
0
 class Meta:
     paginator_class = CrossSiteXHRPaginator
     queryset = QGISServerStyle.objects.all()
     resource_name = 'styles'
     detail_uri_name = 'id'
     allowed_methods = ['get', 'post', 'delete']
     authorization = GeoNodeStyleAuthorization()
     filtering = {
         'id': ALL,
         'title': ALL,
         'name': ALL,
         'layer': ALL_WITH_RELATIONS
     }