You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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