res self client post reverse communication-list sub_matter sub_matter

1
2
3
4
5
6
7
8
9
res = self.client.post(reverse('communication-list'), {
'sub_matter': sub_matter.pk,
'subject': 'Test inv',
'body': 'Test multi recipient',
'recipients': [
{'recipient_type': 'contacts.contact', 'recipient_id': contact.pk},
{'recipient_type': 'users.user', 'recipient_id': user2.pk},
]
}, format='json')