Commit 6d2472bc authored by Claire Zuliani's avatar Claire Zuliani

fix: batch serializer error, not including tasks #6

parent 5baee415
......@@ -94,7 +94,7 @@ class Batch(models.Model):
amount = Decimal(0.0)
return amount
Batch._meta.serializer_fields = ['@id', 'invoice', 'title', 'htAmount']
Batch._meta.serializer_fields = ['@id', 'invoice', 'title', 'htAmount', 'tasks']
class Task(models.Model):
batch = models.ForeignKey(Batch, on_delete=models.CASCADE, related_name='tasks')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment