Skip to content

Commit

Permalink
Order destination_attributes by value (#110)
Browse files Browse the repository at this point in the history
* Order destination_attributes by value

* Remove ordering
  • Loading branch information
Hrishabh17 authored Jun 11, 2024
1 parent 72da0bc commit 4cb8d84
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 @@ -410,12 +410,11 @@ class DestinationAttributesView(LookupFieldMixin, ListAPIView):
Destination Attributes view
"""

queryset = DestinationAttribute.objects.all()
queryset = DestinationAttribute.objects.all().order_by('value')
serializer_class = DestinationAttributeSerializer
pagination_class = None
filter_backends = (DjangoFilterBackend,)
filterset_fields = {'attribute_type': {'exact', 'in'}, 'display_name': {'exact', 'in'}, 'active': {'exact'}}
ordering_fields = ('value',)


class FyleFieldsView(ListAPIView):
Expand Down
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.33.0',
version='1.33.1',
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 4cb8d84

Please sign in to comment.