import --> add distribution detail in dist batch
This commit is contained in:
@@ -79,7 +79,7 @@ class TagDistributionService:
|
||||
|
||||
return {'tag_distributions': distributions, 'distributions_batch': distributions_batch}
|
||||
|
||||
def edit_distribution(self):
|
||||
def edit_distribution(self, batch: TagDistributionBatch, data: dict = None):
|
||||
"""
|
||||
edit record of distributed tags
|
||||
"""
|
||||
|
||||
@@ -201,7 +201,7 @@ class TagDistributionBatchSerializer(serializers.ModelSerializer):
|
||||
|
||||
representation['distributions'] = [{
|
||||
'id': dist.id,
|
||||
'dist_identity': dist.identity,
|
||||
'dist_identity': dist.dist_identity,
|
||||
'species_code': dist.species_code,
|
||||
'distributed_number': dist.distributed_number
|
||||
} for dist in instance.distributions.all()]
|
||||
|
||||
Reference in New Issue
Block a user