# Path: tests/patterns_app/views.py
# class FilterableView(ListAPIView):
#     serializer_class = ModelSerializer.for_model(
#         FilterableModel,
#         include_fields='__all__',
#     )
#     filter_backends = [IdentifierFilterBackend]
#     queryset = FilterableModel.objects.all()
# 
#     router = None
#     action = None
# 
#     def filter_by_identifiedmodel(self, queryset, ids):
#         return queryset.filter(
#             parent_id__in=ids,
#         )
# 
# Path: tests/settings.py
# WITH_NONROOT = True


    from django.urls import path
    from django.conf.urls import url
from wq.db import rest
from tests.patterns_app.views import FilterableView
from .settings import WITH_NONROOT
try:
except ImportError:
    path = None



if WITH_NONROOT:
    base_url = 'wqsite/'
else:
    base_url = ''


if path:
    urlpatterns = [
        path(base_url + 'filterable/<path:ids>', FilterableView.as_view()),
        path(base_url, rest.router.urls),
    ]
else:
    # FIXME: Remove in 2.0
    urlpatterns = [
        url(
            r'^' + base_url + 'filterable/(?P<ids>.+)',

# Path: tests/patterns_app/views.py
# class FilterableView(ListAPIView):
#     serializer_class = ModelSerializer.for_model(
#         FilterableModel,
#         include_fields='__all__',
#     )
#     filter_backends = [IdentifierFilterBackend]
#     queryset = FilterableModel.objects.all()
# 
#     router = None
#     action = None
# 
#     def filter_by_identifiedmodel(self, queryset, ids):
#         return queryset.filter(
#             parent_id__in=ids,
#         )
# 
# Path: tests/settings.py
# WITH_NONROOT = True


# Path: tests/urls.py
    from django.urls import path
    from django.conf.urls import url
from wq.db import rest
from tests.patterns_app.views import FilterableView
from .settings import WITH_NONROOT

try:
except ImportError:
    path = None



if WITH_NONROOT:
    base_url = 'wqsite/'
else:
    base_url = ''


if path:
    urlpatterns = [
        path(base_url + 'filterable/<path:ids>', FilterableView.as_view()),
        path(base_url, rest.router.urls),
    ]
else:
    # FIXME: Remove in 2.0
    urlpatterns = [
        url(
            r'^' + base_url + 'filterable/(?P<ids>.+)',

            FilterableView.as_view()