I see no reason not to use `db = router.db_for_write(cls)` instead of this whole for/continue loop. AFAIK, this will give you the same result you're looking for.