change map structure of rancher statistics
This commit is contained in:
@@ -127,7 +127,8 @@ class QuotaDistributionSerializer(serializers.ModelSerializer):
|
||||
|
||||
if 'rancher' in self.context.keys():
|
||||
# rancher herd & live stock statistics
|
||||
representation['rancher_statistics'] = get_rancher_statistics(self.context['rancher'])
|
||||
livestock_counts_list, livestock_counts_dict = get_rancher_statistics(self.context['rancher'])
|
||||
representation['rancher_statistics'] = livestock_counts_list
|
||||
|
||||
# rancher live stock statistics by quota distributions
|
||||
representation['rancher_quota_weight_statistics'] = rancher_quota_weight(
|
||||
|
||||
Reference in New Issue
Block a user