Skip to content

Commit

Permalink
Fix allowed ordering fields for cards
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed Oct 4, 2024
1 parent 2af54df commit d764d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/spellbook/views/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
class CardViewSet(viewsets.ReadOnlyModelViewSet):
queryset = CardDetailSerializer.prefetch_related(Card.objects)
serializer_class = CardDetailSerializer
ordering = ['variant_count', 'name']
ordering_fields = ['variant_count', 'name']
filter_backends = [NameAutocompleteQueryFilter, OrderingFilterWithNullsLast]

0 comments on commit d764d98

Please sign in to comment.