Use _read_attribute(primary_key) instead of id
This will avoid the indirection of having calling id since we already know which is the primary key column. Also this will make explicit the behavior since it is not clear that id gets the right primary key value and not just the value of the "id" column.
Showing
想要评论请 注册 或 登录