Skip to content

Commit

Permalink
Fix: Paginated Destination API (#108)
Browse files Browse the repository at this point in the history
* Fix: Paginated Destination API

* Setup fix
  • Loading branch information
ruuushhh authored May 27, 2024
1 parent 5bcca83 commit dd18940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions fyle_accounting_mappings/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,7 @@ class PaginatedDestinationAttributesView(LookupFieldMixin, ListAPIView):
"""
Paginated Destination Attributes view
"""
queryset = DestinationAttribute.objects.filter(active=True)
queryset = DestinationAttribute.objects.filter(active=True).order_by('value')
serializer_class = DestinationAttributeSerializer
filter_backends = (DjangoFilterBackend,)
filterset_fields = {'attribute_type': {'exact', 'in'}, 'display_name': {'exact', 'in'}, 'value': {'icontains'}}
ordering_fields = ('value',)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name='fyle-accounting-mappings',
version='1.32.2',
version='1.32.3',
author='Shwetabh Kumar',
author_email='[email protected]',
description='Django application to store the fyle accounting mappings in a generic manner',
Expand Down

0 comments on commit dd18940

Please sign in to comment.