publish_user = relationship('User', backref=backref('pages', order_by=id),
    primaryjoin='Page.publishing_user_id == User.id')
edit_user = relationship('User', primaryjoin=
    'Page.last_edit_user_id == User.id')
How to define two relationships to the same table in SQLAlchemy