change on broker (organization type) - some changes on livestock & herd

This commit is contained in:
2025-08-05 16:33:42 +03:30
parent 7792e67b1e
commit 2bc1931def
11 changed files with 267 additions and 4 deletions

View File

@@ -151,7 +151,7 @@ class RancherViewSet(viewsets.ModelViewSet, DynamicSearchMixin):
""" list of rancher herds """
rancher = self.get_object()
queryset = rancher.herd.all() # get rancher herds
queryset = rancher.herd.all().order_by('-modify_date') # get rancher herds
# paginate queryset
page = self.paginate_queryset(queryset)