Open staydecent opened 6 years ago
Instead of adding if statements to get_queryset
get_queryset
parents = self.request.query_params.get('parents', None) if parents: parents = [int(x) for x in parents.split(',')] queryset = queryset.filter(parent__pk__in=parents)
Instead of adding if statements to
get_queryset