Use `self.get_pk(column_value)` instead of `column_value.pk` to make it work with SQLAlchemy.