DT
Size: a a a
DT
•
•
D
accounts = Account.objects.filter(Q(account_type=3) | Q(account_type=4))
transactions = Transaction.objects.filter(
account__in=accounts,
date_created__gte=request.data['start_date'],
date_created__lte=request.data['end_date']
).order_by('date_created')
R
DT
^
"data": [
{
"type": "ChatRoomView",
"id": "3",
"attributes": {},
"relationships": {
"creator": {
"data": {
"type": "Profile",
"id": "1"
DT
DT
^
DT
DT
"data": [
{
"type": "ChatRoomView",
"id": "3",
"attributes": {},
"relationships": {
"creator": {
"data": {
"type": "Profile",
"id": "1"
^
R
^
R
R
М
•
accounts = Account.objects.filter(Q(account_type=3) | Q(account_type=4))
transactions = Transaction.objects.filter(
account__in=accounts,
date_created__gte=request.data['start_date'],
date_created__lte=request.data['end_date']
).order_by('date_created')