Merge remote-tracking branch 'origin/master' into v2

This commit is contained in:
Christopher C. Wells 2023-04-14 19:49:08 -07:00
commit 76d117047c
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class ChildViewSet(viewsets.ModelViewSet):
queryset = models.Child.objects.all() queryset = models.Child.objects.all()
serializer_class = serializers.ChildSerializer serializer_class = serializers.ChildSerializer
lookup_field = "slug" 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_fields = ("birth_date", "first_name", "last_name", "slug")
ordering = "-birth_date" ordering = "-birth_date"