[Answer]-How to filter between two databases?

1👍

I made this:

f1 = MyModel.objects.using('old').all()

pids = [p.id for p in f1]

f2 = MyModel.objects.exclude(id__in=pids).filter()

But I don’t know if it is good.

👤Nips

Leave a comment