как то по другому делается, типо: ...filter(type__exact=1,2)
типа так как я понимаю: https://stackoverflow.com/questions/42105347/django-combine-filter-on-two-fields/42105467 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')
Благодарю
Обсуждают сегодня