fix --> non batch in tag distribution
This commit is contained in:
@@ -161,6 +161,7 @@ class TagDistributionSerializer(serializers.ModelSerializer):
|
||||
"""
|
||||
representation = super().to_representation(instance)
|
||||
|
||||
if instance.batch:
|
||||
representation['batch'] = {
|
||||
'id': instance.batch.id,
|
||||
'batch_creator': instance.batch.organization.name,
|
||||
|
||||
Reference in New Issue
Block a user