diff --git a/api/views.py b/api/views.py index 7f513e92..a0c32acc 100644 --- a/api/views.py +++ b/api/views.py @@ -33,7 +33,7 @@ class ChildViewSet(viewsets.ModelViewSet): queryset = models.Child.objects.all() serializer_class = serializers.ChildSerializer lookup_field = "slug" - filterset_fields = ("first_name", "last_name", "slug", "birth_date") + filterset_fields = ("id", "first_name", "last_name", "slug", "birth_date") ordering_fields = ("birth_date", "first_name", "last_name", "slug") ordering = "-birth_date"