change on broker (organization type) - some changes on livestock & herd
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user