mirror of https://github.com/snachodog/mybuddy.git
Merge remote-tracking branch 'origin/master' into v2
This commit is contained in:
commit
76d117047c
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue