I need to filter Titles by genre field, I tried to use DjangoFilterBackend, but it didn’t work, I don’t know, how to create a CustomSearchFilter? Views: class GenreViewSet(ModelCVDViewSet): queryset = Genre.objects.all() serializer_class = GenreSerializer permission_classes = (IsAdminOrReadOnly,) filter_backends = (DjangoFilterBackend, filters.SearchFilter) filterset_fields = (‘name’, ‘slug’) search_fields = (‘name’, ‘slug’) lookup_field = ‘slug’ class TitleViewSet(viewsets.ModelViewSet): queryset ..

Read more

I have a dash application that I deployed to AWS Elastic Beanstalk. However, for some reason it’s throwing the following js error and I am unable to run the application. <script src="/_dash-component-suites/dash_core_components/dash_core_components-shared.v1_14_1m1609827723.js"></script> <script src="/_dash-component-suites/dash_renderer/dash_renderer.v1_8_3m1609827723.min.js"></script> <script id="_dash-renderer" type="application/javascript">var renderer = new DashRenderer();</script> The issue seems to stem from one of the dash js script that’s being ..

Read more