1👍
I can’t test it right now but probably something like:
as_in_bs = map(lambda b: b.field1, B.objects.filter(field1__isnull=False))
Take a look in their docs for more ideas.
Source:stackexchange.com
1👍
I can’t test it right now but probably something like:
as_in_bs = map(lambda b: b.field1, B.objects.filter(field1__isnull=False))
Take a look in their docs for more ideas.