this breaks with models that use custom primary keys, changing id to pk
did the trick for me.